<!--
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

function ckRegisForm(a,b){
var a,b,strAlert;
strAlert="";
	if(a.sign_name.value.length<3){
		a.sign_name.focus();
		strAlert="Please fill your First Name!";
	}else if(a.sign_sur.value.length<3){
		a.sign_sur.focus()
		strAlert="Please fill your Last Name!";
	}else if(a.sign_birth.value==""){
		strAlert="Please fill your Birthday!";
	}else if(a.sign_type_com.value.length<5){
		a.sign_type_com.focus()
		strAlert="Please fill your Type of Business!";
	}else if(a.sign_com.value.length<5){
		a.sign_com.focus()
		strAlert="Please fill your Company Name!";
	}else if(a.sign_address.value.length<5){
		a.sign_address.focus()
		strAlert="Please fill your Company Address!";
	}else if(a.sign_pin.value.length<5){
		a.sign_pin.focus()
		strAlert="Please fill your Zip Code!";
	}else if(a.sign_email.value.length<5 || !filter.test(a.sign_email.value)){
		a.sign_email.focus();
		strAlert="Please fill your E-mail Address or incorrect E-mail format!";
	}else if(a.sign_un.value.length<5 || a.sign_un.value==""){
		a.sign_un.focus();
		strAlert="Username is incorrect or not less than 5 characters!";
	}else if(a.sign_pw.value.length<4 || (a.sign_pw.value!=a.sign_pw_con.value) || a.sign_pw.value==""){
		strAlert="Password is incorrect!";
		a.sign_pw.focus();
	}/*else if(a.code.value.length<3){
		a.code.focus();
		strAlert="กรุณากรอกโค้ดยืนยันการสมัครสมาชิก !";
	}*/
	if(strAlert!=""){
		alert(strAlert);
	}else{
		b.value="Saving... !";
		b.disabled=true;
		a.submit();
	}
}

function ckRegisFormEdit(a,b){
var a,b,strAlert;
strAlert="";
	if(a.sign_name.value.length<3){
		a.sign_name.focus();
		strAlert="Please fill your First Name!";
	}else if(a.sign_sur.value.length<3){
		a.sign_sur.focus()
		strAlert="Please fill your Last Name!";
	}else if(a.sign_birth.value==""){
		strAlert="Please fill your Birthday!";
	}else if(a.sign_type_com.value.length<5){
		a.sign_type_com.focus()
		strAlert="Please fill your Type of Business!";
	}else if(a.sign_com.value.length<5){
		a.sign_com.focus()
		strAlert="Please fill your Company Name!";
	}else if(a.sign_address.value.length<5){
		a.sign_address.focus()
		strAlert="Please fill your Address!";
	}else if(a.sign_pin.value.length<5){
		a.sign_pin.focus()
		strAlert="Please fill your Zip Code!";
	}else if(a.sign_email.value.length<5 || !filter.test(a.sign_email.value)){
		a.sign_email.focus();
		strAlert="Please fill your E-mail Address or incorrect E-mail format!";
	}
	
	if(strAlert!=""){
		alert(strAlert);
	}else{
		b.value="Saving... !";
		b.disabled=true;
		a.submit();
	}
}

function numOnly(){
	//alert(event.keyCode);
	if(event.keyCode>57 || event.keyCode<48){
		event.keyCode='';
	}
}
//-->
