// select jump menu
function MM_jumpMenu(targ,selObj,restore){ //v3.0
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}
//------------------------------------------------------------------------------------------

// Popup Form Submit
	function SubmitMyForm(f) {
		f.target = 'foo';
		window.open('',f.target,'menubar=no,scrollbars=no,width=250,height=120');
		f.submit();
		return false;
	}
//------------------------------------------------------------------------------------------

// Show Hide Layer
	var isIE = false;
	var isOther = false;
	var isNS4 = false;
	var isNS6 = false;
	if(document.getElementById){
		if(!document.all){
			isNS6=true;
		}
		if(document.all){
			isIE=true;
		}
	}else{
		if(document.layers){
			isNS4=true;
		}else{
			isOther=true;
		}
	}
	function aLs(layerID){
	var returnLayer;
		if(isIE){
			returnLayer = eval("document.all." + layerID + ".style");
		}
		if(isNS6){
			returnLayer = eval("document.getElementById('" + layerID + "').style");
		}
		if(isNS4){
			returnLayer = eval("document." + layerID);
		}
		if(isOther){
			returnLayer = "null";
			alert("-[Error]-\nDue to your browser you will probably not\nbe able to view all of the following page\nas it was designed to be viewed. We regret\nthis error sincerely.");
		}
	return returnLayer;
	}
	function HideShow(ID){
		if((aLs(ID).visibility == "visible") || (aLs(ID).visibility == "")){
			aLs(ID).visibility = "hidden";
			aLs(ID).position = "absolute";
			SetCookie('palm_cms_menu_'+ID,'closed',null,'/');
		}else if(aLs(ID).visibility == "hidden"){
			aLs(ID).visibility = "visible";
			aLs(ID).position = "relative";
			SetCookie('palm_cms_menu_'+ID,'opened',null,'/');
		}
	}
//------------------------------------------------------------------------------------------

// Cookie Funktionen
	function getCookieVal (offset) { 
		var endstr = document.cookie.indexOf (";", offset); 
		if (endstr == -1) 
		endstr = document.cookie.length; 
		return unescape(document.cookie.substring(offset, endstr));
	}
	function GetCookie (name) { 
		var arg = name + "="; 
		var alen = arg.length; 
		var clen = document.cookie.length; 
		var i = 0; 
		while (i < clen) { 
		var j = i + alen; 
		if (document.cookie.substring(i, j) == arg) 
		return getCookieVal (j); 
		i = document.cookie.indexOf(" ", i) + 1; 
		if (i == 0) break; 
		} 
		return null;
	}
	function SetCookie (name, value) { 
		var argv = SetCookie.arguments; 
		var argc = SetCookie.arguments.length; 
		var expires = (argc > 2) ? argv[2] : null; 
		var path = (argc > 3) ? argv[3] : null; 
		var domain = (argc > 4) ? argv[4] : null; 
		var secure = (argc > 5) ? argv[5] : false; 
		document.cookie = name + "=" + escape (value) + 
		((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
		((path == null) ? "" : ("; path=" + path)) + 
		((domain == null) ? "" : ("; domain=" + domain)) + 
		((secure == true) ? "; secure" : "");
	}
	function DeleteCookie (name) { 
		var exp = new Date(); 
		exp.setTime (exp.getTime() - 1); 
		var cval = GetCookie (name); 
		document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
	}
//------------------------------------------------------------------------------------------
