function verify(){
	window.location.reload();
}
function checkfrm(){
	var us = document.getElementById("uid");
	var pw = document.getElementById("pwd");
	//var vr = document.getElementById("ver");
	if(us.value==''){
		alert("Please enter the E-mail.");
		us.focus();
		return false;
	}
	if(pw.value==''){
		alert("Please enter the Password.");
		pw.focus();
		return false;
	}
	/*if(vr.value.length<4){
		alert("Please enter the Verify Code, and length must be 4 bytes.");
		vr.focus();
		return false;
	}*/
}

function checkAddUserfrm(){
	var name = document.getElementById("name");
	var psw = document.getElementById("psw");
	var psw2 = document.getElementById("psw2");
	var company_name = document.getElementById("company_name");
	var contact_person = document.getElementById("contact_person");
	
	if(name.value==''){
		alert("Please enter the User Name.");
		name.focus();
		return false;
	}	
	if(company_name.value==''){
		alert("Please enter the Company Name.");
		company_name.focus();
		return false;
	}	
	if(contact_person.value==''){
		alert("Please enter the Contact Person.");
		contact_person.focus();
		return false;
	}
	if(psw.value != psw2.value || psw.value == '' || psw2.value == '' ){
		alert("Password not match! Or password is empty, please try again!");
		psw.focus();
		return false;
	}

}


//An Image reset button
//can be used like this in the form
// <input type="image" src="images/buttons/cancel.jpg"  onClick="return resetBtn(this.form);" >

//By Andy

function resetBtn(fm){
    fm.reset();
    return false;
}


