<!--
function loadpopup(refpage)	// generic popup size.
{
	var newPop=window.open(refpage,'name','height=550px,width=640px,left=0,top=0,resizable=yes,scrollbars=yes');
	if (window.focus) {
	    newPop.focus();
	}

}

function loadfpopup(header,subheader,picref,desc,wideimg)	// on the fly product popups.
{
	var newPop=window.open('','name','height=550px,width=640px,left=0,top=0,resizable=yes,scrollbars=yes');
	if (window.focus) {
	    newPop.focus();
	}

	newPop.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n');
	newPop.document.write('<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">\n\n');
	newPop.document.write('<head>\n');
	newPop.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />\n');
	newPop.document.write('<link rel="stylesheet" href="../styles/nor_gen.css" type="text/css" />\n');
	newPop.document.write('<link rel="stylesheet" href="../styles/nor_popups.css" type="text/css" />\n');
	newPop.document.write('<title>' + header + '</title>\n');
	newPop.document.write('</head>\n\n');

	newPop.document.write('<body>\n');
	newPop.document.write('<div class="pbody">\n');
	newPop.document.write('<div id="toppush"></div>\n\n');
  
	newPop.document.write('<div id="pheader">\n');
 	newPop.document.write('<h1>' + header + '</h1>\n');
	newPop.document.write('<h2>' + subheader + '</h2>\n');
	newPop.document.write('</div>\n\n');

	if (wideimg) {
		newPop.document.write('<img class="wide" src="' + picref + '" alt="' + header + '" />\n'); }
	else {
		newPop.document.write('<img src="' + picref + '" alt="' + header + '" />\n'); }

	if (desc != "") {
		newPop.document.write('<p>' + desc + '</p>\n'); }
	  	
	newPop.document.write('<br /><p><a href="javascript:self.close()">Close</a></p>\n\n');
 	newPop.document.write('<div id="bottompush"></div>\n');
	newPop.document.write('</div>\n\n');
  
	newPop.document.write('<div id="copyfooter">\n');
	newPop.document.write('Copyright &copy; 2008-2010<!--#config timefmt="%Y" --><!--#echo var="DATE_LOCAL" --> <b>NobleOutReach, LLC</b>. All rights reserved.\n');
	newPop.document.write('</div>\n');

 	newPop.document.write('</body>\n\n');
  	newPop.document.write('</html>\n');
	newPop.document.close();
}

function loadspopup(refpage,popstyle)		// popstyle is optional, because we test for undefined in setsstyle
{
	document.cookie =  "style=" + escape(popstyle);   // set a cookie (session only) with the style.
	var newPop=window.open(refpage,'name','height=550px,width=640px,left=0,top=0,resizable=yes,scrollbars=yes');
	if (window.focus) {
	    newPop.focus();
	}
}

-->

