var defaultBackground = "#dcdcdc";

function into(oObj)
{
	oObj.style.cursor="pointer"; 
	oObj.style.cursor = "hand";
}

function outof(oObj)
{
	
}	

function rollin(oObj)
{
	oObj.style.cursor = "hand";
	oObj.style.background="ivory";

}

function rollout(oObj)
{
oObj.style.cursor="default";
oObj.style.background=defaultBackground;

}

function copr()
{

	return("Copyright(C) Emily Clarke 2003 All Rights Reserved\n");

}

function checkEric(oObj)
{

	if(oObj.value == "e")
	{
		oObj.value="Eric Christensen";
		oMail=document.getElementById("email");
		oMail.value="\"Christensen, Eric\" <CHRISTENSENE@MAIL.ECU.EDU>";
	}

}	

function	checkClient()
{

	var winWidth;
	
	if(typeof(window.innerWidth) == 'number')
		winWidth=window.innerWidth;
	else
		winWidth=document.body.clientWidth;
	
	if(winWidth < 801)
		document.body.leftMargin=0;

}

function checkContact(form) { 
	var errors = false; 
	var missingFields="";

// Check to make sure there is a valid name, email address and phone number before allowing the form to be submitted

	if(form.name.value==""){
		errors=true;
		missingFields += "Name, ";
	}

	if(form.emailaddr.value==""){
		errors=true;
		missingFields += "Email Address, ";
	}

	if(form.reason.value=="none"){
		errors=true;
		missingFields += "Reason for Contact,";
	}
	if(form.Information.value==""){
		errors=true;
		missingFields += "Description";
	}


// if there aren't any errors, submit the form, otherwise issue an alert

	if (errors == false) { 

		return(true);

	} else {
		
		alert("You must provide the information in the required (*) fields.\nMissing fields: " + missingFields + "\n\nPlease try again");
		return(false);
	} 
}