	var pageID=1;
	
	function hidestatus(){
		window.status=''
		return true
	}
	
	function mouseOverImage(index) 
	{
		if (index != pageID)
			switch(index)
			{
				case 1:
					document.images["aboutus"].src = "./tabs/AboutOver.jpg"
					break;
				case 2:
					document.images["web"].src = "./tabs/WebOver.jpg"
					break;
				case 3:
					document.images["3d"].src = "./tabs/3DOver.jpg"
					break;
				default:
					break;
			}
	} 
	
	function mouseOutImage(index) 
	{
		if (index != pageID)
			switch(index)
			{
				case 1:
					document.images["aboutus"].src = "./tabs/AboutOff.jpg"
					break;
				case 2:
					document.images["web"].src = "./tabs/WebOff.jpg"
					break;
				case 3:
					document.images["3d"].src = "./tabs/3DOff.jpg"
					break;
				default:
					break;
			}
	} 
	
	function changePage(index)
	{
		var activeTag;
		
		if (pageID != index)
		{
			activeTag = pageID;
			pageID = index;
			mouseOutImage(activeTag);
			switch(index)
			{
				case 1:
					document.images["aboutus"].src = "./tabs/AboutOn.jpg"
					break;
				case 2:
					document.images["web"].src = "./tabs/WebOn.jpg"
					break;
				case 3:
					document.images["3d"].src = "./tabs/3DOn.jpg"
					break;
				default:
					break;
			}
		}
	}

	function emailFormWin(address,page) {
		var myUrl = "http://utilities.3dw3design.com/emailform/form.aspx?to=" + address + "&type=" + page;
		//var myUrl = "http://utilities.3dw3design.com/emailForm.aspx?to=" + address + "&type=" + page;
  	 	//var myUrl = "http://utilities.3dw3design.com/OnlineEmailForm/?to=" + address + "&type=" + page;
  	 	//var myUrl = "http://localhost/OnlineEmailForm/WebForm1.aspx?to=" + address + "&type=" + page;
  	 	//var myUrl = "emailForm.html?to=" + address;
  	 	//alert("URL: " + myUrl);
		var formWin = window.open(myUrl,'emailForm','width=525,height=580,left=20,top=100');
		formWin.focus();
	} 

	function validate(passwd)
	{
		if (passwd.value == "admin1")
			window.open("./project/index1.html",'prototype','resizable,scrollbars');
			//top.location.href="./index1.html";
		else
			if (passwd.value == "admin2")
				window.open("./project/index2.html",'prototype','resizable,scrollbars');
				//top.location.href="./index2.html";
			else
				window.alert("Wrong Password. Please try again.");
	}			

	