﻿function changelayer_color(newcolor,id){   
  if(document.layers){            
    //thisbrowser="NN4";             
    document.layers[id].bgColor=newcolor;         
  }         
  if(document.all){ 
     //thisbrowser="ie"          
    eval( "document.all."+id+".style.backgroundColor=newcolor;" );  
  }        
  if(!document.all && document.getElementById){        
     //thisbrowser="NN6";          
    document.getElementById(id).style.backgroundColor=newcolor;           
  }
}

function openPopup( target ) {

  var height = 400;
  var width = 400;
  var scrollbars = true;
  var left = (screen.availWidth - width ) / 2;
  var top = (screen.availHeight - height ) / 2;
  var url = target;
  var popup = window.open( url, "movieWindow", "height="+height+",width="+width+",resizable=no,scrollbars="+(scrollbars ? "yes" : "no" )+",status=no,toolbar=no,menubar=no,location=no,left="+left+",top="+top );
  popup.focus();
}