function clearDefaultValue(formField){

	// clears "Get a Bio" when visitor clicks in search field

	if (formField.defaultValue==formField.value){
		formField.value = ""
	}
}

function restoreDefaultValue(formField){

	// restores "Get a Bio" when visitor clicks out search field
	// if the visitor has not entered anything of their own

	if (formField.value==""){
		formField.value = formField.defaultValue;
	}
}


function changeFontSize(upOrDown){

	// based on assumption: font-size declaration for body in css = 62.5%

	if (upOrDown == "up"){
		if (isNaN(parseInt(document.body.style.fontSize))){
			// hasn't been set yet in a way javascript can read - set it and jump up 20
			document.body.style.fontSize = "82.5%";
		} else {
			document.body.style.fontSize = (parseInt(document.body.style.fontSize) + 20) + "%";
		}
	} else {
		if (isNaN(parseInt(document.body.style.fontSize))){
			// hasn't been set yet in a way javascript can read - set it and jump down 20
			document.body.style.fontSize = "42.5%";
		} else {
			document.body.style.fontSize = (parseInt(document.body.style.fontSize) - 20) + "%";
		}
	}
}

function setActiveStyleSheet(title) {
	var i, a, main;
	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
		if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
			a.disabled = true;
			if(a.getAttribute("title") == title) {
				a.disabled = false;
				alert(title);
			}
		}
	}
}
