<!--

// Opens a window with no buttons, borders, or menus...
function openWindow(windowurl,windowname) {
	var newWindow = window.open(windowurl,windowname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=640,height=480");
	newWindow.focus();
}

// Opens window with only the status bar visible...
function openWindowII(windowurl,windowname) {
	var newWindow = window.open(windowurl,windowname,"toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=640,height=480");
	newWindow.focus();
}

// Opens window with basic navigation buttons visible...
function openWindowIII(windowurl,windowname) {
	var newWindow = window.open(windowurl,windowname,"toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=640,height=480");
	newWindow.focus();
}

// Opens window for Map It function in locator...
function openWindowIV(windowurl,windowname) {
	var newWindow = window.open(windowurl,windowname,"toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=480");
	newWindow.focus();
}

//First opens a popup window informing the user that the link they clicked on
//will take them outside of the HealthLink/NCPPO website
//If the user clicks 'OK' it closes the window and takes them to the link
//If the user clicks 'Cancel' it simply closes the window
function openExternalWindow(externalsiteurl,externalsitename,windowname) {
	//Centers the popup window
	var verticalPos = ((screen.height - 150) / 2)
	var horizontalPos = ((screen.width - 350) / 2)
	
	//Sets up the popup window
	var externalWindow = window.open("",windowname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=350,height=150,top=" + verticalPos + ",left=" + horizontalPos);
	
	//Writes the custom code to the popup window
	externalWindow.document.write("<html>");
	externalWindow.document.write("<head>");
	externalWindow.document.write("<title>Attention</title>");
	externalWindow.document.write("<link rel='stylesheet' href='inc_style_sheet.css' type='text/css'>");
	externalWindow.document.write("</head>");
	externalWindow.document.write("<body bgcolor='#FFFFFF' background='images/popup_background.gif' leftmargin='0' marginheight='0' marginspacing='0' marginwidth='0' topmargin='0'>");
	externalWindow.document.write("<table width='350' border='0' cellspacing='0' cellpadding='3'>");
	externalWindow.document.write("<tr><td>");
	externalWindow.document.write("<img src='images/one_pixel_transparent.gif' width='75' height='75'>");
	externalWindow.document.write("</td><td>");
	externalWindow.document.write("<span class='hl-12px-bold-red-text'>Attention:</span><br><span class='hl-12px-normal-text'>You are about to leave the HealthLink web site. By clicking <b>OK</b> you will leave the HealthLink web site and be taken to the <b>" + externalsitename + "</b> web site. By clicking <b>Cancel</b> you will remain at the HealthLink web site.</span>");
	externalWindow.document.write("</td></tr>");
	externalWindow.document.write("<tr><td>");
	externalWindow.document.write("&nbsp;");
	externalWindow.document.write("</td><td align='center'>");
	externalWindow.document.write("<img src='images/one_pixel_transparent.gif' width='50' height='5'><br><a href='" + externalsiteurl + "' target='_blank' onClick='window.close();'><img src='images/ok_button.gif' width='53' height='27' border='0'></a><img src='images/one_pixel_transparent.gif' width='27' height='27'><a href='#' onClick='window.close();'><img src='images/cancel_button.gif' width='83' height='27' border='0'></a>");
	externalWindow.document.write("</td></tr>");
	externalWindow.document.write("</table>");
	externalWindow.document.write("</body>");
	externalWindow.document.write("</html>");
	
	externalWindow.focus();
}

//This displays the help text when a help balloon icon is clicked on
function openHelpBalloonWindow(helptitle,helptext,windowname) {
	//Centers the popup window
	var verticalPos = ((screen.height - 275) / 2)
	var horizontalPos = ((screen.width - 350) / 2)
	
	//Sets up the popup window
	var helpWindow = window.open("",windowname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=350,height=275,top=" + verticalPos + ",left=" + horizontalPos);
	
	//Writes the custom code to the popup window
	helpWindow.document.write("<html>");
	helpWindow.document.write("<head>");
	helpWindow.document.write("<title>Help Balloon</title>");
	helpWindow.document.write("<link rel='stylesheet' href='inc_style_sheet.css' type='text/css'>");
	helpWindow.document.write("</head>");
	helpWindow.document.write("<body bgcolor='#FFFFFF' background='images/popup_background.gif' leftmargin='0' marginheight='0' marginspacing='0' marginwidth='0' topmargin='0'>");
	helpWindow.document.write("<table width='350' border='0' cellspacing='0' cellpadding='3'>");
	helpWindow.document.write("<tr><td>");
	helpWindow.document.write("<img src='images/one_pixel_transparent.gif' width='75' height='75'>");
	helpWindow.document.write("</td><td>");
	helpWindow.document.write("<span class='hl-12px-bold-red-text'>" + helptitle + "</span><br><span class='hl-12px-normal-text'>" + helptext + "</span>");
	helpWindow.document.write("</td></tr>");
	helpWindow.document.write("<tr><td>");
	helpWindow.document.write("&nbsp;");
	helpWindow.document.write("</td><td align='center'>");
	helpWindow.document.write("<img src='images/one_pixel_transparent.gif' width='50' height='10'><br><a href='#' onClick='window.close();'><img src='images/close_window_button.gif' width='114' height='25' border='0'></a>");
	helpWindow.document.write("</td></tr>");
	helpWindow.document.write("</table>");
	helpWindow.document.write("</body>");
	helpWindow.document.write("</html>");
	
	helpWindow.focus();
}
//-->
