var prt="";
prt+='<TABLE height="40" cellSpacing="0" cellPadding="0" width="750" border="0">';
prt+='	<tr>';
prt+='		<FORM name="sfrm" action="http://biosystems.okstate.edu:8443/PBIS/PBIS.PBIS_ProductList" method="get">';
prt+='		<td vAlign="top" width="270"><IMG height="80" src="http://biosystems.okstate.edu:8443/PBIS/images/header.gif" width="270">';
prt+='		</td>';
prt+='		<td vAlign="bottom" width="100"><IMG src="http://biosystems.okstate.edu:8443/PBIS/images/oceslogo.jpg" border="0">';
prt+='		</td>';
prt+='		<td vAlign="center" align=left width="295">';
prt+='		<div ID="disp"></div>';
prt+='			<TABLE height=10 borderColor="white" cellSpacing="0" cellPadding="0" border="0">';
prt+='				<TR>';
prt+='					<td width="130" bgColor="#2b547e" valign=top>';
prt+='						<font face="arial" color="white" size="1"><b>&nbsp;Search for</b></font><FONT face="arial" color="white" size="1"><B>&nbsp;plan ';
prt+='								materials</B></FONT>';
prt+='					</td>';
prt+='					<TD vAlign="top" width="170">&nbsp;<input type="text" size="14" name="keyword" style="height:20">&nbsp;<input type=image src="http://biosystems.okstate.edu:8443/PBIS/images/go-button.gif" border=0 align=top>';
prt+='					<input type="hidden" size="1" value="search" name="choice" ID="Hidden1"><input type="hidden" size="1" value="none" name="membertype" ID="Hidden1">';
prt+='					</TD>';
prt+='				</TR>';
prt+='			</TABLE>';
prt+='		</td>';
prt+='		<td vAlign="top" align="right" width="85"><IMG height="80" src="http://biosystems.okstate.edu:8443/PBIS/images/topright.gif" width="85" border="0">';
prt+='		</td>';
prt+='	</FORM>';
prt+='</tr>';
prt+='</TABLE>';
document.write(prt);
			
var setData;

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}

function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function GetValue (name, arr) {
var name, arr;
var arg = name + "=";
var alen = arg.length;
var clen = arr.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (arr.substring(i, j) == arg)
{
	var endstr = arr.indexOf (";", j);
	if (endstr == -1)
		endstr = arr.length;
	return arr.substring(j, endstr);
}
i++;
}
return null;
}

function SetCookie(NameOfCookie, value, expiredays) 
{
var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
document.cookie = NameOfCookie + "=" + escape(value) + "; path=/" +
((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}

function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + 
exp.toGMTString();
}

var loc=location.href;
if(loc=="http://biosystems.okstate.edu:8443/PBIS/PBIS.PBIS_ThankYou")
{
	DeleteCookie("custID");
	document.cookie = "custID='';path=/";
	DeleteCookie("CartTotal");
	DeleteCookie("CartCount");
}	

if(loc=="http://biosystems.okstate.edu:8443/PBIS/PBIS.PBIS_MemberLogin?control=logout")
{
	document.cookie = "Session=out;path=/";
}	

function ShipCostInfo()
{
	alert("Shipping and handling costs:\n\nfor an order subtotal above (or equal to) $0.00 but below (or equal to) $10.00 is $2.00\nfor an order subtotal above $10.00 but below (or equal to) $20.00 is $3.00\nfor an order subtotal above $20.00 but below (or equal to) $30.00 is $4.00\nfor an order subtotal above $30.00 is $5.00\n\nNo shipping and handling costs charged for County personnel.\n");
}
