

var searchstring = new Array(500);
var searchcode = new Array(500);


function parse_search_string()
{

document.forms['form1'].location.value=document.forms['form1'].location.value.toLowerCase();
document.forms['form1'].searchcodes.value="";
document.forms['form1'].searchexception.value = document.forms['form1'].location.value;
//	for(x=0;x<0;x++)
//		{
//		if(document.forms['form1'].location.value.indexOf(searchstring[x])>=0) 
//			{
//			//alert (searchstring[x]);
//			document.forms['form1'].searchcodes.value = document.forms['form1'].searchcodes.value +  searchcode[x] + " " ;
//			document.forms['form1'].searchexception.value = document.forms['form1'].searchexception.value.substring(0,document.forms['form1'].searchexception.value.indexOf(searchstring[x])) + document.forms['form1'].searchexception.value.substring(document.forms['form1'].searchexception.value.indexOf(searchstring[x]) + searchstring[x].length );
//			}
//		}
document.forms['form1'].page.value=0;
document.forms['form1'].pagelast.value=0;
document.forms['form1'].submit();
}

function execute_search(inputstring)
{
document.forms['form1'].location.value=inputstring.toLowerCase();
parse_search_string();
document.forms['form1'].page.value=0;
document.forms['form1'].pagelast.value=0;
alert('ff');	
document.forms['form1'].submit();

}
