function launchWindow(url, wide, high, name, resize) {
	  var screenwidth;
   var screenheight;
   var allow_resize;
   //gets top and left positions based on user's resolution so new window is centered.
   screenwidth = (window.screen.width/2) - (wide/2 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
   screenheight = (window.screen.height/2) - (high/2 + 50); //half the screen height minus half the new window height (plus title and status bars).
   if (name == null) {
      var rdn = Math.round(Math.random() * 1000000);
      name = "openWindow" + rdn;
   }   
   if (resize == 'Y') 
      allow_resize = 'yes';
   else 
      allow_resize = 'no';

   window.open(url + '?myurl=' + document.location.href,name,'width=' + wide + ',height=' + high + ",menubar=0,toolbar=no,resizable=" + allow_resize + ",left=" + screenwidth + ",top=" + screenheight + ",screenX=" + screenwidth + ",screenY=" + screenheight + ",scrollbars=no");
}
