


function sitesearch(box)
{
   if ( box.value == "" )
      return;

   var url = '/soeg/Pages/default.aspx?k=' + box.value;
   var theForm = document.forms[0];
   theForm.onsubmit=function() {return false;}; 
   theForm.action = url;
   var obj = document.getElementById('__VIEWSTATE');  // hack, to remove viewstate problem
   obj.value="";

   theForm.submit();
}



function sitesearch_with_cr(box, event)
{  
if (event.keyCode != 13) return true;

   if ( box.value == "" )
     return;

  if (event.keyCode == 13)
    sitesearch (box);
  return false;
}



function getQueryString(ji) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
ft = gy[i].split("=");
if (ft[0] == ji) {
return ft[1];
}
}
}




function setsearchword (obj)
{
	if (obj)
	{
		obj.value = getQueryString("k");
	}
}


