function Bw(id, src) {
 document.images[id].src=src;
}
var layer="",styleSwitch="",myElement="";

function showLayer(layerName) {
 if(document.layers) {
  layerStyleRef="layer.";
  layerRef="document.layers";
  styleSwitch="";
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top=-8')
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
 }else if (document.all) {
  layerStyleRef="layer.style.";
  layerRef="document.all";
  styleSwitch=".style";
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
 }else if (document.getElementById) {
  document.getElementById(""+layerName+"").style.width='100%';
  document.getElementById(""+layerName+"").style.visibility = 'visible';
 } 
}

function hideLayer(layerName) {
 if(document.layers) {
  layerStyleRef="layer.";
  layerRef="document.layers";
  styleSwitch="";
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
 }else if (document.all) {
  layerStyleRef="layer.style.";
  layerRef="document.all";
  styleSwitch=".style";
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
 }else if (document.getElementById) {
//     alert(navigator.appName + navigator.appVersion);
  document.getElementById(""+layerName+"").style.visibility= 'hidden';
 } 
}
function newWindow(url, name, width, height, toolbar, status, scrollbar, resizable, menubar, location) {
  if(window.kp){
   if(window.kp.closed == true){
      kp = window.open(url,name,"width=" + width + ",height=" + height + ", toolbar=" + toolbar + ",status=" + status + ",scrollbars=" + scrollbar + ",resizable=" + resizable + ",menubar=" + menubar + ",location=" + location);
      window.kp.focus();
      return false;
   }else{
   window.kp.close();
   kp = window.open(url,name,"width=" + width + ",height=" + height + ", toolbar=" + toolbar + ",status=" + status + ",scrollbars=" + scrollbar + ",resizable=" + resizable + ",menubar=" + menubar + ",location=" + location);
   window.kp.focus();
   return false;
   }
  }else{
   kp = window.open(url,name,"width=" + width + ",height=" + height + ", toolbar=" + toolbar + ",status=" + status + ",scrollbars=" + scrollbar + ",resizable=" + resizable + ",menubar=" + menubar + ",location=" + location);
   window.kp.focus();
   return false;
  }
}
 