// JavaScript Document

function high(e,bg,font,cursor){
if (cursor=='')cursor='hand';
e.style.backgroundColor=bg;
e.style.color=font;
e.style.cursor=cursor;
}

function unhigh(e,bg,font){
e.style.backgroundColor=bg;
e.style.color=font;
}
function url(strURL){
	window.location.href=strURL;
}

function picover(e,cursor) {
e.className='tdpicover';
e.style.cursor=cursor;
}

function picout(e) {
e.className='tdpic';
}

function openw(htmlurl,mwidth,mheight) {
var newwin1=window.open(htmlurl, "", "resizable=0, width="+mwidth+"px,height="+mheight+"px,scrollbars=0,status=no");
newwin1.focus();
return false;
}

function openwin(htmlurl,mwidth,mheight) {
var newwin1=window.open(htmlurl, "", "resizable=1, width="+mwidth+"px,height="+mheight+"px,scrollbars=1,status=yes");
newwin1.focus();
return false;
}

function openwi(htmlurl) {
var newwin1=window.open(htmlurl, "", "resizable=0, width=10px,height=10px,scrollbars=0,status=no");
newwin1.blur();
}
function url(url) {
window.location.href=url;
return false;
}

function submitonce(theform){
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
{tempobj.value='Processing ...';tempobj.disabled=true;}
}
}
}


function chknum(fld, e) {
var strCheck = '0123456789';
var whichCode = (window.Event) ? e.which : e.keyCode;
if (whichCode == 13) return true;  // Enter
key = String.fromCharCode(whichCode);  // Get key value from key code
if (strCheck.indexOf(key) == -1) return false;  // Not a valid key
}
function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}
