//<script language="javascript">

function goin()
{
	//var strUrl = "http://" + document.location.hostname + "/eip/index.html";alert(strUrl);
	//document.getElementById("aSystem").href = strUrl;
}
var strUrl = "http://" + document.location.hostname + "/eip/index.html";
document.getElementById("aSystem").href = "http://211.136.179.52:8082/eip/login/login.aspx?ReturnUrl=%2feip%2fmain%2fmain.aspx";

function jump()
{
	var srcElement;	
	srcElement = window.event.srcElement;
	strLocation = document.location.toString().toLowerCase();
	try
	{
		i = strLocation.toLowerCase().indexOf("/chinese/");
		if(i<0)
		{
			i=strLocation.toLowerCase().indexOf("/big5/");
			if(i<0)
			{
				i=strLocation.toLowerCase().indexOf("/english/");
			}
		}
		str = strLocation.substr(0,i);//alert(srcElement.src.toLowerCase() +","+ str+"/portal/english/images/go.gif");
		if(srcElement.tagName.toLowerCase()=="img" && srcElement.src.toLowerCase() == str+"/english/images/go.gif")
		{
			strReplace = "/chinese/";
			//alert(strReplace);
			jumpTo = document.all("select").selectedIndex;
			
			switch(jumpTo)
			{
			case 0:
				strReplace = "/chinese/";break;
			case 1:
				strReplace = "/big5/";break;
			case 2:
				strReplace = "/english/";break;
			default:break;
			}
			if(strLocation.indexOf("/chinese/")>=0)
			{
				n = strLocation.indexOf("/chinese/");
				strL1 = strLocation.substr(0,n);
				strL2 = strLocation.substr(n+9);
				strLocation = strL1 +strReplace+ strL2;
			}
			else if(strLocation.indexOf("/big5/")>=0)
			{
				n = strLocation.indexOf("/big5/");
				strL1 = strLocation.substr(0,n);
				strL2 = strLocation.substr(n+6);
				strLocation = strL1 +strReplace+ strL2;
			}
			else if(strLocation.indexOf("/english/")>=0)
			{
				n = strLocation.indexOf("/english/");
				strL1 = strLocation.substr(0,n);
				strL2 = strLocation.substr(n+9);
				strLocation = strL1 +strReplace+ strL2;
			}
			document.location = strLocation;
		}
	}
	catch(exception) {}
}
document.onclick = jump;
//</script>