	if ( top != self )
	{
		top.location = self.document.location;
	}	
	function validate_form()
	{
		var strVal = TrimString(document.searchtitle.searchstr.value);

		if ( document.searchtitle.searchstr.value == "" )
		{
			alert("Please Enter Your Search String!");
			document.searchtitle.searchstr.focus();
			return false;
		}
		if ( strVal.length == 0 )
		{
			alert("Please Enter Your Search String!");
			document.searchtitle.searchstr.focus();
			return false;
		}
		return true;
	}

	function TrimString(sInString)
	{
		sInString = sInString.replace( /^\s+/g, "" );		// strip leading
		sInString = sInString.replace( /\s+$/g, "" );		// strip trailing
		return sInString;
	}
	
	function openWin(url,wname )
	{
		winWidth = screen.width;
		availWidth = screen.availWidth;
		availHeight = screen.availHeight;

		winHeight = availHeight - ( availHeight * 0.088 );

		var win = window.open(url,wname,'directories=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,copyhistory=no,status=yes,width=' + winWidth + ',height='+ winHeight + ',left=0,top=0');		

		win.focus();	
	} 
	