// JavaScript Document

function getAllFields(form,id) {
	//alert(msg);
}

function showLoader(rootVZ,whichContainer,clearContainer,showText) {
	if(document.getElementById(whichContainer)) {
		var html = '<img src="'+rootVZ+'images/loader.gif" border="0" align="absmiddle" alt="loading..." />';
		if(showText.length>0) { html+= '<span class="Loadertext">'+showText+'</span>'; }
		if(clearContainer) { document.getElementById(whichContainer).innerHTML = html; }
		else { document.getElementById(whichContainer).innerHTML = html+document.getElementById(whichContainer).innerHTML; }
	}
}
function clearLoader(whichContainer) {
	document.getElementById(whichContainer).innerHTML = "";
}




function generateUploader(id) {
	var uploader = new plupload.Uploader({
	runtimes : 'gears,html5,flash,silverlight,browserplus',
	browse_button : 'pickfiles',
	max_file_size : '10mb',
	resize : {width : 320, height : 240, quality : 90},
	url : 'upload.php',
	flash_swf_url : 'includes/plupload/js/plupload.flash.swf',
	silverlight_xap_url : 'includes/plupload/js/plupload.silverlight.xap',
	filters : [
		{title : "Bilder", extensions : "jpg,gif,png"},
		{title : "Zip Files", extensions : "zip"},
		{title: "Dokumente", extensions: "pdf,doc,docx"}
	]
});
	
}
