function openWindow(urlRef_in,text_in){
	var image_loc = urlRef_in;

	//need to preload image here for Mozilla so that it has the image properties in time when they are referenced to resize the popup window
	var myImage = new Image();
	myImage.src=image_loc;
	//NB DP - 040403 - onload event was attached to image or body tag but was not resizing properly in Mozilla so best to have image preoloaded and then resizing window using preloaded image properties

	newHTML = "<html style='height: 100%; min-height: 100%'><head><link rel='stylesheet' type='text/css' href='newDesign3.css'></head><body id='bodyPopup2'>"+
					"<div id='maincontainerPopup'><div id='topSectionPopup'><div id='popupButton' style='width: 13%; height: 40px; min-height: 40px; display: table; #position: relative; overflow: hidden; padding-left: 10px; padding-right: 10px;'><div  style='#position: absolute; #top: 50%; #left: 0; display: table-cell; vertical-align: middle; padding-left: 10px; margin-right: 10px;'><a href='#' style='#position: relative; #top: -50%; #left: 0' onclick='javascript: window.close();'>Close</a></div></div><div style='float: left; width: 43px;'><img src='../images/background/header2_left_popup.jpg' border='0'></div></div><div id='contentwrapperMainPopup'><div id='contentwrapperBackgroundPopup'><div style='text-align: left; padding-top: 20px; padding-bottom: 10px; height: 100%; min-height: 100%; width: 100%;'><div style='display: table; height: 80%; #position: relative; overflow: hidden; width: 100%; text-align: center; align: center'><div style='width: 100%; text-align: center; #position: absolute; #top: 50%; #left: 0; display: table-cell; vertical-align: middle; align: center'><center><table cellpadding='0' cellspacing='0' border='0' style='width: 10%; #position: relative; #top: -50%; #left: 0'><tr><td><img src='"+ image_loc +"' border=0 name=load_image></td></tr><tr><td><div class='popupText'>"+text_in+"</td></tr></table></center></div></div></div>"+
					"</div></div></div></body></html>";

//*********** NB GET RID OF DYNAMIC RESIZING OF POPUP - TAKES TOO LONG TO LOAD ***************//
	//var newWindow = window.open('','template','toolbar=no,resizable=yes,width=10,height=10');
	var winl = (screen.width - 450) / 2;
	var wint = (screen.height - 550) / 2;
	winprops = 'height=450 ,width=550,top='+wint+',left='+winl+'toolbar=no,resizable=yes,width=450,height=550'
	var newWindow = window.open('','template',winprops);
	newWindow.document.open();
	newWindow.document.write(newHTML);
	newWindow.document.close();
	newWindow.focus();
}

function goWindow(target){
	var winl = (screen.width - 600) / 2;
	var wint = (screen.height - 400) / 2;
	winprops = 'height=400 ,width=600,top='+wint+',left='+winl+',scrollbars=yes,menubar=yes,location=yes,toolbar=yes,resizable=yes'
	var goWindow = window.open(target,'template',winprops);
	goWindow.focus();
}

function newWindow(target){
	var winl = (screen.width - 600) / 2;
	var wint = (screen.height - 400) / 2;
	winprops = 'height=400 ,width=600,top='+wint+',left='+winl+',scrollbars=yes,menubar=yes,location=yes,toolbar=yes,resizable=yes'
	var newWindow = window.open(target,'template',winprops);
	newWindow.focus();
}

function newWindow2(target){
	var winl = (screen.width - 660) / 2;
	var wint = (screen.height - 400) / 2;
	winprops = 'height=400 ,width=660,top='+wint+',left='+winl+',scrollbars=yes,menubar=yes,location=no,toolbar=no,resizable=yes'
	var newWindow = window.open(target,'template',winprops);
	newWindow.focus();
}