var TmrID;
var WaitCnt=1;
var isIE = (document.all);
var isNN6 = (document.getElementById && !document.all);
var Tmp;

function ZoomWindow(p) {
var WId;
//WId = window.open(p,"Zoom","top=0,left=0,width=800,height=600,location=no,menubar=no,scrollbars=yes,toolbar=no,status=no,resizable=yes");
WId = window.open(p,"Zoom","top=0,fullscreen=yes,location=no,scrollbars=yes,status=no,resizable=no");
}

function NewWindow(InAddr,InName) {
var WId;
WId = window.open(InAddr,"","top=150,left=200,width=300,height=100,location=no,menubar=no,scrollbars=no,toolbar=no,status=no,resizable=no");
return(WId);
}

function MailWindow(InAddr) {
var WId;
WId = window.open(InAddr,"","top=10,left=10,width=670,height=520,location=no,menubar=no,scrollbars=yes,toolbar=no,status=no,resizable=yes");
}

function Trim(p) {
var i,j,l;
l = p.length;
for (i=0;i<l;i++) {
    if (p.charCodeAt(i) != 32) break;
}
for (j=(l-1);j>=0;j--) {
    if (p.charCodeAt(j) != 32) break;
}
if (i <= j) {
   return(p.substring(i,j+1));
}else{
   return("");
}
}

function GetParm(p) {
var CurSrch=window.location.search;
var ChkStr,OStr,SStr,TStr,i,l;
CurSrch=unescape(CurSrch);
if (CurSrch.indexOf("?",0)>=0){
   CurSrch=CurSrch.substring(1,CurSrch.length);
   TStr=CurSrch.split("&");
   ChkStr=p.toUpperCase();
   l=p.length;
   OStr = "";
   for (i=0;i<TStr.length;i++){
       SStr=TStr[i].toUpperCase();
       if (SStr.substring(0,l)==ChkStr){
           OStr=TStr[i].substring(l+1,SStr.length);
           break;}}
   return(OStr);
}else{
  return("");
}            
}
