// JavaScript Document
function validate_frmregister(){
	if(checkblank("txtfirstname","first name")==false) return false;
	if(checkblank("txtlastname","last name")==false) return false;
	if(checkblank("txtemail","email")==false) return false;
	if(!isEmail(document.getElementById("txtemail").value)){
		alert("Please enter valid email address.");
		document.getElementById("txtemail").focus();
		return false;
	}
	if(checkblank("txtpassword","password")==false) return false;
	if(document.getElementById("txtpassword").value.length<6){
		alert("Please enter password having more than 4 characters.");
		document.getElementById("txtpassword").focus();
		return false;
	}
	if(document.getElementById("selgender").value==0){
		alert("Please select gender.");
		document.getElementById("selgender").focus();
		return false;
	}
	if(checkblank("txtsecurity_code","security code")==false) return false;
	return true;	
}


function setfocus(){
	document.getElementById("txtfirstname").focus();	
}
