function LoadPage()
{

if(document.all('lstQuickIndex').value=="0")
alert('Oops! Invalid Option');
else
location.href = document.all('lstQuickIndex').value;

}



function SendForm()
{
document.all('txtKeywords').value = stripSpaces(document.all('txtKeywords').value);
var keywords = document.all('txtKeywords').value;

if(keywords=="")
{
alert("Invalid or missing keyword");
document.all('txtKeywords').focus();
return false;
}

frmSearch.action = "http://riphah.com/modules/search/StartSearch.php";
frmSearch.submit();
}




function stripSpaces(x)

{ 
 return x.replace(/^\W+/,'');
}
