     function ChkUsername(strTemp) {
             var valid = "/:;<=>?[\\]^` ";
             var chknum = "1234567890";
		var check = false;
		if (strTemp.length > 0) {
		   if (chknum.indexOf(strTemp.charAt(0)) == -1 && valid.indexOf(strTemp.charAt(0)) == -1 ){
						check = true;
	                 } 
		}
		return check;
	}



	function ChkEmail(strTemp) {
		var check = false;
		if (strTemp.length > 0) {	
			if (strTemp.indexOf("@") > 0) {		
				if (strTemp.indexOf(".") > 0 && strTemp.indexOf(".") < strTemp.length - 1) {
					check = true;
				}
			}
		}
		return check;
	}

	function isNumberChar(InString) {
			
			if (InString.length < 1) return(false);
			var RefString;
	
			RefString="1234567890";
			if (RefString.indexOf(InString, 0)==-1) return(false);
			return(true);
}

function check_number(item) {
		e_k=event.keyCode

		//if (((e_k < 48) || (e_k > 57)) && e_k != 46 ) {
		if (e_k != 13 && e_k != 46 && (e_k < 48) || (e_k > 57)) {
		event.returnValue = false;
		alert("ต้องเป็นตัวเลขเท่านั้น...  \nกรุณาตรวจสอบข้อมูลของท่านอีกครั้ง...");
		item.focus();
		}
}