function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function open_window(theURL) { //v2.0
  window.open(theURL,"","toolbar=yes,scrollbars=yes,resizable=yes,width=700");
}
function open_movie(theURL) { //v2.0
  window.open(theURL,"","toolbar=no,locationbar=no,scrollbars=no,resizable=yes,width=500,height=400");
}
function attach_file( p_script_url ) {
      // create new script element, set its relative URL, and load it
      script = document.createElement( 'script' );
      script.src = p_script_url;
      document.getElementsByTagName( 'head' )[0].appendChild( script );
}
function Open_Window(theURL,winName,width,height) { //v2.0
    if(height==0 || height>screen.availHeight) height=screen.availHeight;
	var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));	
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",scrollbars,left=" + left + ",top=" + top + 
        "screenX=" + left + ",screenY=" + top;
  	window.open(theURL,winName,windowFeatures);
}