function outputOwnerHeader(pre,sec,nolangs,searchval) {
	if (!sec) sec = "";
	if (!pre && pre != '') pre = '../';
	if (!searchval) searchval = '';

	var out = '';
	
	out += '<div id="header" class="poolowner">\n';
	out += '	<a href="' + pre + '../index.htm"><img src="' + pre + '../images/logo-pw-ltblue.gif" width="180" height="53" class="movelogo" alt="Pentair Water Pool and Spa Logo" /></a>\n';
	out += '	<h1>' + (pre == ''?'':('<a href="' + pre + '">')) + 'For Pool Owners' + (pre == ''?'':'</a>') + '</h1>\n';
	out += '	<div id="search">\n';
	out += '		<form action="' + pre + 'search/index.php" method="get">\n';
	out += '		<ul id="navsearch">\n';
	out += '			<li' + (nolangs?' style="visibility:hidden"':'') + '><a>English</a></li>\n';
	out += '			<li' + (nolangs?' style="visibility:hidden"':'') + ' id="last"><a href="javascript:changeLanguage(\'es\');">Espaņol</a></li>\n';
	out += '			<li id="lastsearch">SEARCH</li>\n';
	out += '		</ul>\n';
	out += '		<div id="searchinput">\n';
	out += '			<input name="q" type="text" class="search" value="' + searchval + '" /><input type="image" class="movego" src="' + pre + '../images/btn-go-ltblue.gif" alt="Go" align="top" border="0" />\n';
	out += '		</div>\n';
	out += '		</form>\n';
	out += '	</div>\n';
	out += '	<ul id="navigationSP">\n';
	out += '		<li' + (sec == 'products'?' id="active"':'') + ' class="tall"><a href="' + pre + 'products/">Products</a></li>\n';
	out += '		<li' + (sec == 'manuals'?' id="active"':'') + ' class="tall"><a href="' + pre + 'manuals/">Manuals</a></li>\n';
	out += '		<li' + (sec == 'brochures'?' id="active"':'') + ' class="tall"><a href="' + pre + 'brochures/">Brochures</a></li>\n';
	out += '		<li' + (sec == 'resources'?' id="active"':'') + ' class="tall"><a href="' + pre + 'resources/">Resources</a></li>\n';
	out += '		<li' + (sec == 'safety-warnings' || sec == 'safety-warnings-recalls'?' id="active"':'') + '><a href="' + pre + 'safety-warnings/">Safety/Warnings/<br />Recalls</a></li>\n';
	out += '		<li' + (sec == 'save-energy'?' id="active"':'') + ' class="tall"><a href="' + pre + 'save-energy/">Save Energy</a></li>\n';
	out += '		<li' + (sec == 'news'?' id="active"':'') + ' class="tall"><a href="' + pre + 'news/">News</a></li>\n';
	out += '		<li' + (sec == 'rebates'?' id="active"':'') + ' class="tall"><a href="' + pre + 'rebates/">Rebates</a></li>\n';
	out += '		<li' + (sec == 'warranty'?' id="active"':'') + '><a href="' + pre + 'warranty/">Product<br />Registration</a></li>\n';
	out += '		<li id="last" class="tall"><a href="http://www.pentairpartners.com/dealerlocator/dealerlocatorlist.aspx" target="_blank">Dealer Locator</a></li>\n';
	out += '	</ul>\n';
	out += '</div><!--END footer-->\n';
	
	return out;
}
