// JavaScript Document
<!--
	function OnChangeLogin()
	{
		var o=document.frmLogin;
		vi=o.vTxtFlagPrd.value;
		if(vi=="0")
		{
			o.imgproduct.src="images/imgweb/Border/arrow_up.gif";
			o.vTxtFlagPrd.value="1";
			ajax_do ('phps/wbcontrolrun/wb_conproduct.php?lang='+vlang+'')
		}	
		else
		{
			o.imgproduct.src="images/imgweb/Border/arrow_down.gif";
			o.vTxtFlagPrd.value="0";
			div = document.getElementById('contentdiv');
			div.innerHTML='';
		
		}
		
	}
	function OnChangeIcon()
	{
		var o=document.frmProduct;
		vi=o.vTxtFlagPrd.value;
		if(vi=="0")
		{
			o.imgproduct.src="images/imgweb/Border/arrow_up.gif";
			o.vTxtFlagPrd.value="1";
			ajax_do ('phps/wbcontrolrun/wb_conproduct.php?lang='+vlang+'')
		}	
		else
		{
			o.imgproduct.src="images/imgweb/Border/arrow_down.gif";
			o.vTxtFlagPrd.value="0";
			div = document.getElementById('contentdiv');
			div.innerHTML='';
		
		}
		
	}
	function OnChangeLink()
	{
		var o=document.frmLink;
		vi=o.vTxtFlagPrd.value;
		if(vi=="0")
		{
			o.imgproduct.src="images/imgweb/Border/arrow_up.gif";
			o.vTxtFlagPrd.value="1";
			ajax_do ('phps/wbcontrolrun/wb_conlink.php?lang='+vlang+'')
		}	
		else
		{
			o.imgproduct.src="images/imgweb/Border/arrow_down.gif";
			o.vTxtFlagPrd.value="0";
			div = document.getElementById('linkdiv');
			div.innerHTML='';
		
		}
		
	}
	function OnChangeGraphic()
	{
		var o=document.frmGraphic;
		vi=o.vTxtFlagPrd.value;
		if(vi=="0")
		{
			o.imgproduct.src="images/imgweb/Border/arrow_up.gif";
			o.vTxtFlagPrd.value="1";
			ajax_do ('phps/wbcontrolrun/wb_congraphic.php?lang='+vlang+'')
		}	
		else
		{
			o.imgproduct.src="images/imgweb/Border/arrow_down.gif";
			o.vTxtFlagPrd.value="0";
			div = document.getElementById('grapdiv');
			div.innerHTML='';
		
		}
		
	}	
	function GotoPageMulti(frm,obj,iPage) {
	obj.value=iPage;
    frm.submit();
}
	function setRunTime(vValue,vPage)
	{	
			switch(parseInt(vValue))
			{
				case 0://vertical menu
					cmDraw ('myMenuID', myMenu, 'hbr', cmThemeOffice, 'ThemeOffice');
										
					setTimeout('setRunTime(1,'+vPage+')',0.001*1000);
					break;
				case 1://image logo
					//ajax_do ('phps/wbcontrolrun/wb_execighome.php?&lang='+vlang+'&TypeRun=1&Display=imgheader_logo'+'&Page='+vPage);			
					setTimeout('setRunTime(2,'+vPage+')',0.001*1000);
					break;
				case 2://introduce Products
				ajax_do ('phps/wbcontrolrun/wb_exechome.php?&lang='+vlang+'&TypeRun=0&Display=idleft'+'&Page='+vPage);	
					//ajax_do ('phps/wbcontrolrun/wb_exechome.php?&lang='+vlang+'&TypeRun=6&Display=idProducts'+'&Page='+vPage);
					setTimeout('setRunTime(3,'+vPage+')',0.2*1000);
					break;
				case 3://image header_02
					//ajax_do ('phps/wbcontrolrun/wb_execighome.php?&lang='+vlang+'&TypeRun=2&Display=header_02');										
					setTimeout('setRunTime(4,'+vPage+')',0.1*1000);
					break;
				case 4://Top menu
				//	ajax_do ('phps/wbcontrolrun/wb_exechome.php?&lang='+vlang+'&TypeRun=3&Display=idTop'+'&Page='+vPage);	
					setTimeout('setRunTime(5,'+vPage+')',0.001*1000);
					break;
				case 5://Heager_01
				/*
					switch(vPage)
					{
						case 1:
							ajax_do ('phps/wbcontrolrun/wb_execighome.php?&lang='+vlang+'&TypeRun=0&Display=imgHeader_01'+'&Page='+vPage);						
							break;
						case 2:
							ajax_do ('phps/wbcontrolrun/wb_execighome.php?&lang='+vlang+'&TypeRun=3&Display=imgHeader_01'+'&Page='+vPage);						
						
							break;
						default:
							ajax_do ('phps/wbcontrolrun/wb_execighome.php?&lang='+vlang+'&TypeRun=0&Display=imgHeader_01'+'&Page='+vPage);						
							break;
					}*/

					setTimeout('setRunTime(6,'+vPage+')',0.01*1000);
					break;
				case 6://set link
					//ajax_do ('phps/wbcontrolrun/wb_exechome.php?&lang='+vlang+'&TypeRun=4&Display=idLink'+'&Page='+vPage);				
					setTimeout('setRunTime(7,'+vPage+')',0.1*1000);
					break;	
				case 7://Advantage
				//	ajax_do ('phps/wbcontrolrun/wb_exechome.php?&lang='+vlang+'&TypeRun=5&Display=idAdvantage'+'&Page='+vPage);	
					setTimeout('setRunTime(8,'+vPage+')',1*1000);
					break;															
				case 8://Refesh
					
				//	cmDraw ('myMenuID1', myMenu, 'hbr', cmThemeDown, 'ThemeDown');
					setTimeout('setRunTime(9,'+vPage+')',0.1*1000);
					break;
				case 9:		
				
					IEHoverPseudo();
					break;
										
	
			}
	}
	function rotateimages_Adv_Wait(vstrhref,vstrSrc,vstrTitle,vci,vpt)
	{
		setTimeout("rotateimages_Adv('"+ vstrhref+"','"+vstrSrc+"','"+vstrTitle+"',"+vci+","+vpt+")",10000)
	}		
	function Login(plang)
				{
					var o=document.frmLogin;
					ajax_do ('phps/excutelogin/excutelogin.php?&lang='+plang+'&userid='+o.txtUserID.value+'&password='+o.txtPassword.value,0);
				}
	function SignOut(plang)
	{
				var o=document.frmLogin;
				ajax_do ('phps/excutelogin/excutesignout.php?&lang='+plang,0);
		
	}	
	
	-->
