<!--

function rnd(scale) {
var dd=new Date();      
return((Math.round(Math.abs(Math.sin(dd.getTime()))*1000000000)%scale)); 
}


// Set the url of the banner popup window page
var theURL = "wait.htm";
// Set the title of the popup window
var title = "Please Wait....."

// Set the size of the popup window
var windowWidth  = 478; // cannot be less than 100
var windowHeight = 150; // cannot be less than 100

// Set the position of the popup window
//var windowX = 100;
//var windowY = 100;

var windowX = (window.screen.width-windowWidth)/2;
var windowY = (window.screen.height-windowHeight)/2;
// Set true to auto-center (positions will be ignored)
var autocenter = true;

// Set true for popup to close when launch page does
var autoclose = true;

// Do not edit below this line.
// ============================

var s="width="+windowWidth+",height="+windowHeight+", screenX="+windowX +",screenY="+ windowY;
var beIE=document.all?true:false;
var done=new Object("no");

if(autocenter){
windowX = (window.screen.width-windowWidth)/2;
windowY = (window.screen.height-windowHeight)/2;
}
function doAgilePopup(){
document.getElementById('submission').innerHTML = ('<img src=images/an11.gif border=0 align=left >Please wait while the form is submitted....');

}
function dddoAgilePopup(){
  if (beIE){
  agilePopper = window.open("","popAgile",""+s+"");  
 agilePopper.focus();
 // window.focus();
  agilePopper.resizeTo(windowWidth,windowHeight);
  agilePopper.moveTo(windowX,windowY);
  var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+theURL+"' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
  agilePopper.document.open();
  agilePopper.document.write(frameString);
  agilePopper.document.close();
  }else{
  agilePopper=window.open(theURL,"popAgile","scrollbars=no,"+s);
 agilePopper.focus();
//  window.focus(); 
  agilePopper.resizeTo(windowWidth,windowHeight);
  agilePopper.moveTo(windowX,windowY);
  }   
  agilePopper.focus(); 
  if (autoclose){
  window.onunload = function(){agilePopper.close();}
  }  
  done="okay";
}



function drawhead(whatever){
document.write ('<div id=' + whatever +'>Welcome</div>');
document.getElementById(whatever).innerHTML=('<TABLE style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="23" cellSpacing="0" cellPadding="0" width="100%" background="hack/catbg.gif" border="0" ID="Table1"><TBODY><TR><TD width="325" height="23"><IMG height="23" hspace="0" src="http://home.leeowen.com/asp/hack/leftcatb.gif" width="118" align="left" border="0"></TD><TD width="100%" height="23"><P align="center"><FONT face="verdana, arial, helvetica" color="#ffffff" size="1"><B>'+ whatever +'</B></FONT></P></TD><TD width="322" height="23"><IMG height="23" hspace="0" src="http://home.leeowen.com/asp/hack/rightcatb.gif" width="118" align="right" border="0"></TD></TR></TBODY></TABLE>')
}

function centerWindow(mypage,mywidth,myheight,mytitle) {
    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;
   var xOffset = (xMax - mywidth)/2, yOffset =	(yMax - myheight)/2;
  //  var xOffset = 1, yOffset = 1;

  window.open(mypage,'CenterPopup','width='+mywidth+',height='+myheight+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset );

}


function googlesch(){
document.frmSch.action=('http://www.google.com/custom');
document.frmSch.method=('GET');
}

function GoodBye(){
	window.alert ('Thanks for visiting <%=vhttp%>.  Please come again soon.');
	top.window.close();}
function fnSet(){
	oHomePage.setHomePage(oHomeHref.value);
	event.returnValue = false;
}
function MyChange(whatever) {
       parent.document.location.href=(whatever);}
function fullpop(whichfullPopUp)
{  popupWindow = open(whichfullPopUp, "fullpopup", "fullscreen,location=0,menubar=0,toolbar=0,status=0,scrollbars=0,dependent=1"); // create window, or overwrite window (since identifier string 'popup' is always the same)
   popupWindow.focus(); // bring window out in front of other windows
}
function HandleChange(whatever) {
       parent.document.location.href=whatever+"?T=" + document.frmtable.Table.value +"";
}



//-->
