<!--
function Conf(object) {
if (confirm("คุณต้องการลบ จริงหรือเปล่า ?")==true) {
return true;
}
return false;
}

function RefreshImage(valImageId) {
	var objImage = document.images[valImageId];
	if (objImage == undefined) {
		return;
	}
	var now = new Date();
	objImage.src = objImage.src.split('?')[0] + '?x=' + now.toUTCString();
}

function check_userpass() {
t_c=event.keyCode
if ((t_c < 13) || (t_c >13 && t_c < 45) || (t_c > 45 && t_c < 48) || (t_c > 57 && t_c < 65) || (t_c > 90 && t_c < 95) || (t_c > 95 && t_c < 97) || (t_c > 122)) {
event.returnValue = false;
alert("- มีความยาว 4-15 ตัวอักษร \n- เป็นตัวอักษรภาษาอังกฤษ (a-z, A-Z) ,ตัวเลข (0-9) , \n เครื่องหมาย \"-\" หรือ \"_\" เท่านั้น  \n- ห้ามมีการเว้นวรรค");
}
}

function check_number() {
t_c=event.keyCode
if (t_c != 13 && (t_c < 48) || (t_c > 57)) {
event.returnValue = false;
alert("ต้องเป็นตัวเลขเท่านั้น... ");
}
}

function check_point() {
t_c=event.keyCode
if ((t_c >13 && t_c < 45) || (t_c > 46 && t_c < 48) || (t_c > 57)) {
event.returnValue = false;
alert("ต้องเป็นตัวเลขหรือจุดทศนิยมเท่านั้น... ");
}
}

function check_email() {
t_c=event.keyCode
if ((t_c < 13) || (t_c >13 && t_c < 45) || (t_c > 46 && t_c < 48) || (t_c > 57 && t_c < 65) || (t_c > 90 && t_c < 95) || (t_c > 95 && t_c < 97) || (t_c > 122)) {
event.returnValue = false;
alert("ต้องเป็นตัวอักษรภาษาอังกฤษเท่านั้น  \nและห้ามมีการเว้นวรรคเด็ดขาด... ");
}
}
//-->
