function isBlank(s)
{
	var flg,len,k;
	flg=true;
	if(s!=null)
	{
		len=s.length;
		for(k=0;k<len;k++)
		{
			if(s.substring(k,k+1) != " ")
			flg=false;
		}		
	}
	return flg;
}
function ActionDeterminator()
{
	if(window.document.frmSubmit.opt[0].checked == true)
	{
		if(isBlank(window.document.frmSubmit.q.value))
		{
			alert("Please enter text for search.");
			window.document.frmSubmit.q.focus();
			window.document.frmSubmit.q.value="";
			return false;
		}
		else
		{
			window.document.frmSubmit.cof.value="";
			window.document.frmSubmit.method="Post"
			window.document.frmSubmit.action="search.php";	
			window.document.frmSubmit.target="_self";
		}
	}
	if(window.document.frmSubmit.opt[1].checked == true)
	{
		if(isBlank(window.document.frmSubmit.q.value))
		{
			alert("Please enter text for search.");
			window.document.frmSubmit.q.focus();
			window.document.frmSubmit.q.value="";
			return false;
		}
		else
		{
			window.document.frmSubmit.cof.value="GALT:#AC0000;GL:1;VLC:#0022CC;AH:left;BGC:#BDCDE2;LH:75;LC:#4E3CB8;GFNT:#0042A7;L:http://www.netesolutions.net/works/oxonia/images/oxonia_header_google.gif;ALC:#FFB400;LW:570;T:#000000;GIMP:#A70000;AWFID:616d3b71b32c8b96;"
			window.document.frmSubmit.method="Get"
			window.document.frmSubmit.action="http://www.google.com/custom";
			window.document.frmSubmit.target="_blank";
		}
	}	
	return true;
}
