﻿// JavaScript Document


function imageWindow(title, url)
{
  var width="200", height="200";
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  var msgWindow = window.open("","msgWindow", styleStr);
  var head = '<head><title>'+title+'</title></head>';
  
  
  var body = '<center><EMBED SRC='+url+' HEIGHT=144 WIDTH=160 AUTOPLAY=value></embed><p><form><input type="button" value="   Close   " onClick="self.close()"></form>';
//  var body = '<center><img src='+url+'><p><form><input type="button" value="   Close   " onClick="self.close()"></form>';
  msgWindow.document.write(head + body);
}


function doWindowOpen(win_url,win_name,win_features,set_parent) { 
  var new_win 
  var width="350", height="400";
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  new_win=window.open(win_url, win_name, styleStr) 

  new_win.focus()
  if (set_parent==1) {
    new_win.par=self 
  } 
}

// This one eliminates the win_features parameter since it wasn't being used, and replaces it with width and height
function newDoWindowOpen(win_url,win_name,width, height, set_parent) { 
  var new_win 
//  var width="350", height="400";
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  new_win=window.open(win_url, win_name, styleStr) 

  new_win.focus()
  if (set_parent==1) {
    new_win.par=self 
  } 
}

// JavaScript Document

