function getRadioVal($name) { $oEms=document.getElementsByName($name); for ($i=0;$i<$oEms.length;$i++) { if ($oEms[$i].checked) { return($oEms[$i].value); } } }
function isDeclared($varName) { return(typeof($varName)!="undefined"); }
function chStatus($name,$status) { $ooEms=document.getElementsByName($name); for ($a=0;$a<$ooEms.length;$a++) { $ooEms[$a].disabled=$status; } }
function OperateWin32($DownFlag) { $OS_Pro=GetObject("WinMgmts:{(shutdown)}//./root/cimv2").ExecQuery("select * from win32_operatingsystem where primary=true"); for ($e=new Enumerator($OS_Pro);!$e.atEnd();$e.moveNext()) { $getProcess=$e.item() $getProcess.win32shutdown($DownFlag); } }
function ResponseKeyPress() { if (event.keyCode==13) { event.keyCode=9; } }