// JavaScript Document
var isPost = false;
function validateForm(objForm) {
	if  ( isPost ) {
		alert("You have press the SUBMIT button already");
		return false;
	} else if ( IsEmpty(objForm.username.value)) {
		Warning(objForm.username , "Please specify your Member Name");
		return false;
	} else if ( objForm.username.value.length < 3 || objForm.username.value.length >8 ) {
		Warning(objForm.username , "Username 4 - 8 charector");
		return false;
	} else if ( IsEmpty(objForm.pass.value)) {
		Warning(objForm.pass , "Please specify your Password");
		return false;
	}  else if ( !IsPassword(objForm.pass.value)) {
		Warning(objForm.pass , "Password is charactor or digit");
		return false;
	} else if ( IsEmpty(objForm.pass1.value)) {
		Warning(objForm.pass1 , "Please specify your Re-enter Password");
		return false;
	} else if ( objForm.pass.value!=objForm.pass1.value) {
		Warning(objForm.pass1 , "Password not match");
		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 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.city.value)) {
		Warning(objForm.city , "Please specify your City");
		return false;
	} else if ( IsEmpty(objForm.state.value)) {
		Warning(objForm.state , "Please specify your State");
		return false;
	}  else if ( objForm.country.value==0) {
		Warning(objForm.country , "Please specify your Country");
		return false;
	} else if ( IsEmpty(objForm.zip.value)) {
		Warning(objForm.zip , "Please specify your Zip");
		return false;
	} else if ( IsEmpty(objForm.phone.value)) {
		Warning(objForm.phone , "Please specify your Phone");
		return false;
	}  else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	