// JavaScript Document
var isPost = false;
function validateForm(objForm) {
	if  ( isPost ) {
		alert("You have press the SUBMIT button already");
		return false;
	} else if ( IsEmpty(objForm.uname.value)) {
		Warning(objForm.uname , "Please specify your User Name");
		return false;
	} else if ( objForm.uname.value.length < 4) {
		Warning(objForm.uname , "Use 4 or more characters.You may use letters and numbers.");
		return false;
	} else if ( IsEmpty(objForm.password.value)) {
		Warning(objForm.password ,"Please specify your password.");
		return false;
	} else if ( objForm.password.value.length < 4) {
		Warning(objForm.password , "Use 4 or more characters.You may use letters and numbers.");
		return false;
	} else if ( IsEmpty(objForm.repassword.value)) {
		Warning(objForm.repassword , "Please specify your Re-Password");
		return false;
	} else if ( objForm.repassword.value != objForm.password.value) {
		Warning(objForm.repassword , "Password not match. Please specify your Re-Password.");
		return false;
	} else if ( IsEmpty(objForm.email.value)) {
		Warning(objForm.email , "Please specify your E-mail");
		return false;
	} else if ( ! IsEmail(objForm.email.value)) {
		Warning(objForm.email ,"Please specify your Email Address in the right format");
		return false;
	} else if ( IsEmpty(objForm.name.value)) {
		Warning(objForm.name , "Please specify your Name");
		return false;
	} else if ( IsEmpty(objForm.address.value)) {
		Warning(objForm.address , "Please specify your Address");
		return false;
	} else if ( IsEmpty(objForm.vercode.value)) {
		Warning(objForm.vercode , "Please insert validation code");
		return false;
	} else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	