function fnChangeLang(lang){
	doc.txtLang.value=lang;
	frmMain.submit();
}

// for Menu
		var gvSendMenu=false;
		function fnShowSend(){
			tdSend.style.backgroundColor="#3973AC";
			tbSendMenu.style.display="block";
		}
		function fnHideSend(){
			window.setTimeout("fnHideSendT()",300);
		}
		function fnHideSendT(){
			if(!gvSendMenu){
				tdSend.style.backgroundColor="#6699cc";
				tbSendMenu.style.display="none";
			}
		}
		// menu item events
		function fnLight(a){
			if(a){
				event.srcElement.style.backgroundColor="#3973AC";
			}else{
				event.srcElement.style.backgroundColor="#6699cc";
			}
		}
		
		// for Lang Menu
		var gvLangMenu=false;
		function fnShowLangs(){
			tdLangs.style.backgroundColor="#3973AC";
			tbLangsMenu.style.display="block";
		}
		function fnHideLangs(){
			window.setTimeout("fnHideLangsT()",300);
		}
		function fnHideLangsT(){
			if(!gvLangMenu){
				tdLangs.style.backgroundColor="#6699cc";
				tbLangsMenu.style.display="none";
			}
		}
		
		
// for PopUp Window (Pictures)
		function fnOpenWin(sURL,width,height,scr,res,shift)
		{			
			try{				
			var str="scrollbars=";
			if(scr==1){str+='1'}else{str+='0';}
			str+=',resizable='+res+',location=0,toolbar=0,directories=0,status=0,menubar=0';		
					if(arguments.length==5){
						str=str+',left='+(window.screen.availWidth/2-width/2)+',top='+
							(window.screen.availHeight/2-height/2)+',width='+width+',height='+height+',border=0';
					}else{
						str=str+',left='+(window.screen.availWidth/2-width/2+shift)+',top='+
							(window.screen.availHeight/2-height/2+shift)+',width='+width+',height='+height;
					}
						var h = window.open('','win',str);
						h.document.open("text/html", "replace");
						var s='<'+'html><TITLE>&nbsp;</TITLE>' +
								'<body style="margin:0;padding:0">' + 
								'<img src="'+sURL+'" WIDTH=100% Height=100% border=0>'+
								'</body></html>';
						h.document.write(s);
						h.document.close();
  		}catch(e){};
		}