function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}


function checkBlankInputs(form_name)
{
	var inputsPassed = 0;

	//CHECKS FOR EMPTY INPUTS
	for(i = 1; i < arguments.length; i++)
	{
		var theFormInfo = arguments[i].split("#");
		if((eval("document." + form_name + "." + theFormInfo[0] + ".value") == "") || (eval("document." + form_name + "." + theFormInfo[0] + ".value") == "your name") || (eval("document." + form_name + "." + theFormInfo[0] + ".value") == "your email"))
		{
			if(theFormInfo[1] == "")
			{
				theFormInfo[1] = theFormInfo[0];
			}
			alert("Please enter a valid " + theFormInfo[1]);
			i = arguments.length;
		}
		
		else
		{
			inputsPassed++;
		}
	}
	
	//RETURN ACCCORDING TO OUTCOME
	if(inputsPassed == (arguments.length - 1))
	{
		eval("document." + form_name + ".submit()");
	}
	else
	{
		return false;
	}
}




over = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", over);
