
	function NumberFormat(fld,e)
	{
		var strCheck = '0123456789';  // อยากให้ใส่ตัวอักษรอะไรได้บ้าง กำหนดที่ตัวแปรนี้เลย Kook 5/1/2553
		var len = 0;
		var whichCode = (window.Event) ? e.which : e.keyCode; if(whichCode ==13) return true;//  กดปุ่ม Enter Kook 5/1/2553
		key = String.fromCharCode(whichCode);
		if (strCheck.indexOf(key) == -1) return false;
		else return true;
	}

	function checkEmail(_email) {
		var email =_email;
		var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
		if (!filter.test(email)) { return false; }
		return true;
	}//-^- function checkEmail


	
function getElementStyle(elemID, IEStyleProp, CSSStyleProp) {
    //var elem = document.getElementById(elemID);
	elem =elemID;
    if (elem.currentStyle) {
        return elem.currentStyle[IEStyleProp];
    } else if (window.getComputedStyle) {
        var compStyle = window.getComputedStyle(elem, "");
        return compStyle.getPropertyValue(CSSStyleProp);
    }
    return "";
}
 

function ch_over_row_color(_obj ,_color_1 ,_color_2){
	//alert(_obj.style.backgroundColor);
	_obj.style.backgroundColor =_color_2;
}//-^- function ch_over_row_color

function ch_out_row_color(_obj ,_color_1 ,_color_2){
	//alert(_obj.style.backgroundColor);
	_obj.style.backgroundColor =_color_1;
}//-^- function ch_out_row_color
