var imgpath  = "/img/";

if (document.forms[0]) {
   for (var findex=0; document.forms[0].elements[findex];findex++) {
      if ((document.forms[0].elements[findex].type != "hidden") && (document.forms[0].elements[findex].disabled != true)) {
         document.forms[0].elements[findex].focus();
         break;
      }
   }
}

function preload() {
   if (document.images) {

      var Images = preload.arguments;
      ImageObj =new Array(Images.length);

      for (var j=0; j<Images.length; j++) {
         ImageObj[j] = new Image;
         ImageObj[j].src = imgpath+Images[j];
      }
   }
}

function wopenscroll(url,name,w,h,scroll) {
   newWindow = window.open(url,name,"width="+w+",height="+h+",resizable=yes,toolbar=0,location=0,status=1,menubar=0,directories=0,scrollbars="+(scroll ? "1":"0"));
   newWindow.focus();
}

function submit_form(activeForm,actName) {
   activeForm.act.value=actName;
   activeForm.target="";
   return true;
}

