function Popup(purl,w,h){
LeftPosition = (screen.width) ? (screen.width-w-8)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h-50)/2 : 0;
myWinName = window.open(purl,"popup","width="+w+",height="+h+",top="+TopPosition+",left="+LeftPosition+",resizable=no,scrollbars=yes,directories=no,menubar=no,location=no");
if (parseInt(navigator.appVersion) >= 4) {
myWinName.window.focus();
}

}

function confirms(){
    	if(!confirm("กรุณายืนยัน ความแน่ใจ ")) return false;
}
 
function chkform() {
	if (document.form1.lusername.value.length == 0) {
			alert("กรุณาใส่ Username");
			document.form1.lusername.focus();           
			return false;
    }
if (document.form1.lpasswords.value.length == 0) {
		alert("กรุณาใส่ Password");
		document.form1.lpasswords.focus();           
		return false;
}
 }	

 function mOvr(src,clrOver) {

if (!src.contains(event.fromElement)) {

src.style.cursor = 'hand';

OldColor = src.bgColor;

src.bgColor = clrOver;

}

}

function mOut(src) {

if (!src.contains(event.toElement)) {

src.style.cursor = 'default';

src.bgColor = OldColor;

}

}

function mClk(src) {

if(event.srcElement.tagName=='TD') {

src.children.tags('A')[0].click();

}

}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}






