// Triple Search Function -  Brian Daley


function UC_Search(object){ 
	// Determine Radio Value
	for (i=0, n=object.sitesearch.length; i<n; i++) {
	    if (object.sitesearch[i].checked) {
		   RV = object.sitesearch[i].value;
		   break;
	    }
	}
	
	// Quick Validation 
	if((object.q.value == '') || (object.q.value == 'Type Search Here')){
		alert('You must enter your search criteria.');
		object.q.focus();
		return false;
	}
	
	// Set Variables for People Search (Phonebook)
	if(RV == 'People'){
		object.method = "POST";
		object.action = "http://phonebk.uconn.edu/results.php";
		object.q.name = "basictext";
	}
}


// Fixes the google search banner - bdaley
window.onload = function() {
	var banner = document.images[0];
	if(banner.src == 'http://test.pr.uconn.edu:8080/DW_templates/images/blue_top.gif'){
		banner.src = 'http://www.uconn.edu/DW_templates/images/blue_top.gif';
	}	
}
