﻿// JScript File

var myimages=new Array()

function preloadimages()
{
    for (i=0;i<preloadimages.arguments.length;i++)
    {
        myimages[i]=new Image()
        myimages[i].src=preloadimages.arguments[i]
    }
}

function setFocus(ctlID) { 
   if (document.getElementById(ctlID) != null)
      document.getElementById(ctlID).focus();
}

function popUp(URL, w, h) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1,width="+w+",height="+h+",left = 150,top = 40');");
}

function KeyDownHandler(btn) {
   // process only the Enter key
   if (event.keyCode == 13)
   {
      // cancel the default submit
      event.returnValue=false;
      event.cancel = true;
      
      // submit the form by programmatically clicking the specified button
      if (document.getElementById(btn) != null)
         document.getElementById(btn).click();
   }
}