var msie6 = navigator.appVersion.indexOf("MSIE 6") > -1;

function openwin(f, w, h) {
  if (w >800) w=800;
  if (h >600) h=600;
  w=w+40;
  h=h+40;
  mywin=window.open(f, w, "width=" + w + ", height=" + h + ", status=no, scrollbars=yes, resizable=yes"); //, status=yes
  mywin.moveTo((screen.width-w)/2,(screen.height-(h+80))/2);
  mywin.resizeTo(w,h);
  mywin.creator = self;
}

function menuhighlight (obj,imgName) {
  obj.firstChild.src = "image/"+imgName+".png";
}

function changeImage(layer, imgName, imgObj){
  document.getElementById('layer').src = eval(imgObj+".src");
}

function openwinform(f,w,h){
  mywin=window.open(f,"mywin","width="+w+", height="+h+", scrollbars=yes, resizable=yes");
  mywin.creator=self;
}

function redimform(f, w, h){
  w=w+40;
  h=h+40;
  f.moveTo((screen.width-w)/2,(screen.height-(h+80))/2);
  f.resizeTo(w,h);
}
