<!--

function validateformleftnav(){

	title = document.bookreviewleftnav.booktitle.value
	
	validtitlechars = "%&*^#@(!+$"
		
	for (i=0; i<validtitlechars.length; i++) {
		bad = validtitlechars.charAt(i)
		if (title.indexOf(bad,0) != -1) {
			alert("Please enter only alphanumeric characters in the title field.");
			document.bookreviewleftnav.booktitle.focus();
			return false;	
	 	}
	}

	if (title.length < 1){
		alert("Please enter a search query.");
		document.bookreviewleftnav.booktitle.focus();
		return false;
	}

	return true;
}

function urlMenu(that) {
	theURL = that.options[that.selectedIndex].value; 
	if (theURL) {
		window.location = theURL;
	}
}

function trim(psText) 
{
psText = psText.replace(/^[\s]+/g,"");
psText = psText.replace(/[\s]+$/g,"");
return psText;
}

function checkReviewsSearch(){
	if (document.HeaderSearchForm.content[0].checked==true){
		return true;	
	}else{
		document.HeaderSearchForm.bookTitle.value = trim(document.HeaderSearchForm.bookTitle.value.toLowerCase());
		window.location.href = "/index.asp?layout=searchResults&sort=date&text=" + document.HeaderSearchForm.bookTitle.value;
		return false;
	}

}

//-->
