// JavaScript Document
var isPost = false;
function validateForm(objForm) {
	if  ( isPost ) {
		alert("You have press the SUBMIT button already");
		return false;
	} else if ( IsEmpty(objForm.fname.value)) {
		Warning(objForm.fname , "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.city.value)) {
		Warning(objForm.city , "Please specify your City");
		return false;
	} else if ( objForm.province.value==0) {
		Warning(objForm.province , "Please specify your Province");
		return false;
	} else if ( IsEmpty(objForm.zip.value)) {
		Warning(objForm.zip , "Please specify your Zip Code");
		return false;
	} else if ( IsEmpty(objForm.muser.value)) {
		Warning(objForm.muser , "Please specify your Username");
		return false;
	} else if ( IsEmpty(objForm.mpass.value)) {
		Warning(objForm.mpass , "Please specify your Password");
		return false;
	} else if ( IsEmpty(objForm.email.value)) {
		Warning(objForm.email ,"Please specify your Email Address");
		return false;
	} else if ( ! IsEmail(objForm.email.value)) {
		Warning(objForm.email ,"Please specify your Email Address in the right format");
		return false;
	} else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	
