if (!window.searchstyle)
{	var xsearchstyle = "w2t_search_form.cfm";}
else
{ 	var xsearchstyle = "w2t_search_form_searchstyle.cfm";}

if (!window.securesite||securesite == null)
{
	var SSL = "http";
	var securesite="Off";
}
if(securesite=="On")
{
	var SSL = "https";	
}

if (stylecolor == null)
{
	var stylecolor = "gray";
}
if (pagename == null)
{
	var pagename = window.location.pathname;
}
var is_input = document.URL.indexOf('?');
if (is_input != -1)
{ 
	addr_str = document.URL.substring(is_input+1, document.URL.length);
	var qe = "";
		for (count = 0; count < addr_str.length; count++) 
		{
		qe = qe + "" + addr_str.charAt(count);
		}
	qe = SSL+"://www.partners.hss.state.ak.us/gcdse/v2/" + xsearchstyle + "?style="+ stylecolor + "&" + qe;
	document.write('<script src="' + qe + '"><\/script>');
}
else
{
	//document.write("No search information was provided to the system.");
	document.write('<script src="'+SSL+'://www.partners.hss.state.ak.us/gcdse/v2/' + xsearchstyle + '"><\/script>');
}