
function parse_images() {
   var img_cache = new Object();
   var this_page = "links";
   var this_id = "";

   if (document.getElementById) {
      var ar = document.getElementsByTagName('img');
      for( var x = 0; ar[x]; x++ ) {
         var im = ar[x];
         if(im.getAttribute) {
            im.hoversrc = im.getAttribute('hoversrc');
         }
         if(im.hoversrc) {

            im.rootsrc = im.src;
            im.onmouseout = function () {
               this.src = this.rootsrc;
            }

            if(!img_cache[im.hoversrc]) {
               img_cache[im.hoversrc] = new Image();
               img_cache[im.hoversrc].src = im.hoversrc;
            }

            im.onmouseover = function () {
               this.src = this.hoversrc;
            }
         }
      }
   }
}

function openWindow(url,name,w,h,scroll,resize,menu) {
   newWindow = window.open(url,name,"width="+w+",height="+h+",resizable="+(resize ? "1":"0")+",toolbar="+(menu ? "1":"0")+",location=0,status=0,menubar="+(menu ? "1":"0")+",directories=0,scrollbars="+(scroll ? "1":"0"));
   newWindow.focus();
}

function submit_form(formName,actName) {
   document.forms[formName].elements["act"].value=actName;
   document.forms[formName].target="";
   return true;
}

