<!--
	var n4 = (document.layers)?true:false;
	var e4 = (document.all)?true:false;
	
	function verify()	// Login
	{		
		validity = true;
	  
	  	if (document.theformlogin.userid.value == "" )
	  	{
	    		alert("Silakan masukkan Userid");
	    		document.theformlogin.userid.focus();
	    		validity = false;
	  	}
	
	  	if (((document.theformlogin.userid.value.length < 3) || (document.theformlogin.userid.value.length > 40)) && validity == true )
	  	{
			alert("Silakan masukkan lebih dari 3 karakter untuk Userid.");
			document.theformlogin.userid.focus();
	    		validity = false;
	  	}


	  	if (((document.theformlogin.passwd.value.length < 1) || (document.theformlogin.passwd.value.length > 30)) && validity == true)
	  	{
	    		alert ("Silakan masukkan password.");
	    		document.theformlogin.passwd.focus();
	    		validity = false;
	  	}  
	
		if (validity==true)
		{
			document.theformlogin.action="./login_end.asp";
			document.theformlogin.submit();
		}
	}
	
	function idfind()	//  forgot id
	{		
		validity = true;
	  
	  	if (document.theform.lastname.value == "" )
	  	{
	    		alert("Please enter your last name");
	    		document.theform.lastname.focus();	    		
	    		validity = false;
	    		return;
	  	}
	  	
	  	if (document.theform.firstname.value == "" )
	  	{
	    		alert("Please enter your first name");
	    		document.theform.firstname.focus();	    		
	    		validity = false;
	    		return;
	  	}
	
	  	if (document.theform.email1.value == "")
	  	{
	    		alert ("Please enter your Email");
	    		document.theform.email1.focus();
	    		validity = false;
	    		return;
	  	} 
	
		if (validity==true)
		{
			document.theform.type.value = "1";
			document.theform.action="./forgotpassword_end.asp";
			document.theform.submit();
		}
	}
	
	function passwdfind()	//  forgot password
	{		
		validity = true;
	  
	  	if (document.theform.userid.value == "" )
	  	{
	    		alert("Please enter userid");
	    		document.theform.userid.focus();	    		
	    		validity = false;
	    		return;
	  	}		  	

	  	if (document.theform.email2.value == "")
	  	{
	    		alert ("Please enter Email");
	    		document.theform.email2.focus();
	    		validity = false;
	    		return;
	  	}  
	
		if (validity==true)
		{
			document.theform.type.value = "2";
			document.theform.action="./forgotpassword_end.asp";
			document.theform.submit();
		}
	}
	
	function passwdchange()	// change password
	{		
		validity = true;
	  
	  	if (document.theform.passwd.value == "" )
	  	{
	    		alert("Silakan masukkan password lama Anda.");
	    		document.theform.passwd.focus();	    		
	    		validity = false;
	    		return;
	  	}	
		
		if (document.theform.newpasswd.value.length < 6 || document.theform.newpasswd.value.length > 32)
	  	{
	    		alert ("Password baru harus memiliki 6 sampai 32 karakter.");
	    		document.theform.newpasswd.focus();
	    		validity = false;
	    		return;
	  	} 
	  	
	  	if (document.theform.newpasswd.value == "")
	  	{
	    		alert ("Silakan masukkan password baru.");
	    		document.theform.newpasswd.focus();
	    		validity = false;
	    		return;
	  	} 
		else
		{
			var valid = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.-_";
			var ok = "yes";
			var temp;
			for (var cntuserid=0; cntuserid<document.theform.newpasswd.value.length; cntuserid++)
			{
			temp = "" + document.theform.newpasswd.value.substring(cntuserid, cntuserid+1);
			if (valid.indexOf(temp) == "-1") ok = "no";
			}
			if (ok == "no") {
			alert("Password baru salah");
			document.theform.newpasswd.focus();
			document.theform.newpasswd.select();
			return;
			}
		}
	  	
	  	if (document.theform.newpasswd.value != document.theform.newpasswdcheck.value)
	  	{
	    		alert ("Password baru dan konfirmasi password Anda harus sama.");
	    		document.theform.newpasswdcheck.focus();
	    		validity = false;
	    		return;
	  	}  
	
		if (validity==true)
		{			
			document.theform.action="./updatepassword_end.asp";
			document.theform.submit();
		}
	}

	function keyCheck(e) {
		if (n4) var keyValue = e.which;
		else if (e4) var keyValue = event.keyCode;

		if (keyValue == 13) {
			verify();
			return false;
		} else return true;
	}

	function gotoPass() {
		if (n4) var keyValue = e.which;
		else if (e4) var keyValue = event.keyCode;

		if (keyValue == 13) {
			document.theform.passwd.focus();
			return false;
		} else return true;
	}

	function moveFocus() {
		document.theform.userid.focus();
		return;
	}

//-->