// JavaScript Document


	// Input-Boxen onFocus löschen
	<!--
	function clearDefault(el) {
		if (el.defaultValue==el.value) el.value = ""
	}
	//-->
	
	
	<!--
	function MM_jumpMenu(targ,selObj,restore){
		eval(targ+".location='"+ selObj.options[selObj.selectedIndex].value +"'");
		if (restore) selObj.selectedIndex=0;
	}
	//-->
	
	
	<!--
	function hide_area($area) 
	{ 
		if (document.getElementById($area).style.display == "none")
			document.getElementById($area).style.display = "block";
		else
			document.getElementById($area).style.display = 'none';
	} 
	//-->
	
	
	<!--
	function show_configuration()
	{
		if (document.getElementById('or_configuration').style.display == "none")
			document.getElementById('or_configuration').style.display = "block";
		else
			document.getElementById('or_configuration').style.display = 'none';
	}	
	//-->
	

	<!--
	function save_configuration()
	{
		var data = "action=save&"+ $("form_or_configuration").serialize();		
		
		new Ajax.Request("./ax/index.ax.php",
		{
			method: 'post',
			parameters: data,
			onSuccess: function(r) {				
				
			},
			onFailure: function(r) {
					throw new Error('Update project failed: '+ r.statusText);
				}
			}					
		);	//Ajax.Request
	}	
	//-->
	
	<!--
	function number_format (number, decimals, dec_point, thousands_sep)
	{
		var exponent = "";
		var numberstr = number.toString ();
		var eindex = numberstr.indexOf ("e");
		if (eindex > -1)
		{
			exponent = numberstr.substring (eindex);
			number = parseFloat (numberstr.substring (0, eindex));
		}
		
		if (decimals != null)
		{
			var temp = Math.pow (10, decimals);
			number = Math.round (number * temp) / temp;
		}
		var sign = number < 0 ? "-" : "";
		var integer = (number > 0 ? Math.floor (number) : Math.abs (Math.ceil (number))).toString ();
		
		var fractional = number.toString ().substring (integer.length + sign.length);
		dec_point = dec_point != null ? dec_point : ".";
		fractional = decimals != null && decimals > 0 || fractional.length > 1 ? (dec_point + fractional.substring (1)) : "";
		if (decimals != null && decimals > 0)
		{
			for (i = fractional.length - 1, z = decimals; i < z; ++i)
				fractional += "0";
		}
		
		thousands_sep = (thousands_sep != dec_point || fractional.length == 0) ? thousands_sep : null;
		if (thousands_sep != null && thousands_sep != "")
		{
		for (i = integer.length - 3; i > 0; i -= 3)
				integer = integer.substring (0 , i) + thousands_sep + integer.substring (i);
		}
		
		return sign + integer + fractional + exponent;
	}
	//-->	
	
	function language_menu_clicked()
	{
		if($("language_menu").style.display == "none")
			$("language_menu").style.display = "block";
		else
			$("language_menu").style.display = "none";
	}

