 // Show/Hide Object width id=IdName
 	function Toogle(IdName){ Tmp=document.getElementById(IdName); if(Tmp){if(Tmp.style.display != 'none') {	Tmp.style.display = 'none';	}else{Tmp.style.display = '';}} return false;}
  	function SetObjEnable(IdName,Vlue)
	{
		Tmp=document.getElementById(IdName);
		if (Tmp)
		{
			if(!Vlue)
			{
				Tmp.readOnly=true;
				Tmp.style.backgroundColor='#D4D0C8';
			} else {
				Tmp.readOnly=false;
				Tmp.style.backgroundColor='';
			}//else
		}		
	}//SetObjEnable

 	 
// VNDIC library
 // Show/Hide Object width id=IdName
 	function HideObj(IdName){Tmp=document.getElementById(IdName); if (Tmp){Tmp.style.display = 'none';}}
	function ShowObj(IdName){Tmp=document.getElementById(IdName);if (Tmp){Tmp.style.display = '';}}
	function GetObj(IdName){return document.getElementById(IdName);}//return (IdName);}
 // Set CssClass
	function SetClass(obj,className){obj.className=className;}
	function Togle(obj){
		var temp=GetObj(obj.id+"_child");
		if(temp.style.display=="none"){
			ShowObj(obj.id+"_child");
			SetClass(obj,"menu_caption2");
			createCookie(obj.id+"_child","",7)
 		}else{
			HideObj(obj.id+"_child");
			SetClass(obj,"menu_caption1");
			createCookie(obj.id+"_child","none",7)
 		}
 	}// End Togle
	 
 	function createCookie(name,value,days) {
		//alert("Create: " + name);
 		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}//createCookie
		
	function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}//readCookie
		
	function eraseCookie(name) {
		//alert("erase: " + name);
		createCookie(name,"",-1); }//eraseCookie






