function formSubmit(){
	rexq=/\d/
    amount=$('amount').value;
    if(amount==""){
		alert("กรุณากรอกจำนวนเงินก่อนค่ะ");
		return false;
	}else{
        if(amount.match(rexq)){
            return true;
        }else{
            alert("จำนวนเงินต้องกรอกเป็นตัวเลขเท่านั้นค่ะ");  
        	return false;
        }
	}
}
function checkAll(){
		var chk=eval(document.getElementsByName('chk'));
		var chkall=document.getElementById("chk_all");
		if(chkall.checked){
			for(i=0;i<chk.length;i++){
				chk[i].checked=true;
			}
		}else{
			for(i=0;i<chk.length;i++){
				chk[i].checked=false;
			}
		}
}
function registerSubmit(){
		var is_chk=0;
		var chk=eval(document.getElementsByName('chk'));
		for(i=0;i<chk.length;i++){
				if(chk[i].checked){
					is_chk++;
				}
		}
		if($('my_url').value==""){
			alert("กรุณากรอก URL เว็บคุณก่อนค่ะ");
			return false;
		}else if(is_chk<=0){
			alert("กรุณาเลือกสกุลเงินที่จะให้แสดงก่อนค่ะ");	
			return false;
		}
}