
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function validateSearch(sStoredSearch) {
	if (document.simpleSearch.searchtext.value == '' && sStoredSearch == '') {
		alert ("Please enter a search keyword");
		return false;
	}
	else return true;
}

function resetSearch() {
	document.advSearch.SearchTerm1.value = "";
	document.advSearch.SearchTerm2.value = "";	
	document.advSearch.SearchTerm3.value = "";	
	document.advSearch.SearchTerm4.value = "";	
	document.advSearch.SearchOp1[0].checked = true;		
	document.advSearch.SearchOp2[0].checked = true;
	document.advSearch.SearchOp3[0].checked = true;	
	for (j=1;j <= document.advSearch.photographer.length;j++) {
		if (document.advSearch.photographer.options[j-1].value == '') {
			document.advSearch.photographer.selectedIndex = j-1;
			break;
		}
	}
	document.advSearch.orientation[0].checked = true;	
}