function setSearch(thisValue){
	if(thisValue != ""){
		document.searchBoxForm.hq.value = thisValue;
		}
	else{
		document.searchBoxForm.hq.value = "site:www.washington.edu";
		}
	}
	


function setSearchSubmit(){

	var cxLen = document.searchBoxForm.cx.length;
	var setVal = "";
	
	for(var j=0; j<cxLen; j++){
		if(document.searchBoxForm.cx[j].checked){
			setVal = document.searchBoxForm.cx[j].value;
			}
		}
	if(setVal != "") {
		document.searchBoxForm.hq.value = setVal;
		}
	else{
		document.searchBoxForm.hq.value = "site:www.washington.edu";
		}
	}




function setWidth(){
	//var contWidth = document.getElementById('footer-inner');
	//contWidth.style.width = "300px";
	}

function setSearchButton(thisVal){
	var myButton = document.searchBoxForm.cx;
	
	for(var i = 0; i < document.searchBoxForm.cx.length; i++){

		if(document.searchBoxForm.cx[i].value == thisVal){
			document.searchBoxForm.cx[i].checked = true;
			}
		else{
			document.searchBoxForm.cx[i].checked = false;
			}
		}
	}
	

function pageSize(){
	
	var nHeight = 550;  // BASEHEIGHT
	var colAry = new Array("sidebar-left","sidebar-right","content-inner2");
	
	// FIND HIGHEST
	for(var i=0; i<=2; i++){
		if(document.getElementById(colAry[i])){
			var myCol = document.getElementById(colAry[i]);
			if(myCol.clientHeight > nHeight){
				nHeight = myCol.clientHeight;
				}
			}
		}

	// SET TO HIGHEST
	for(var j=0; j<=2; j++){
		
		if(document.getElementById(colAry[j])){			
			var myCol = document.getElementById(colAry[j]);
			myCol.style.height = nHeight + "px";
			}
		}
	}

$(document).ready(function(){
	
	var rightHeight = $("#sidebar-right").height();
	var contHeight = $("#content #content-inner").height();
	if(rightHeight > contHeight){
		$("#content #content-inner").height(rightHeight);
		}
	});


