function pullMenu(menu) {
		document.getElementById(menu).style.top = '19px';
}

function pushMenu(menu) {
		document.getElementById(menu).style.top = '-1000px';
}

function hover() {
		document.getElementById(tab).style.color="#990000";
}

function unhover(tab) {
	document.getElementById(tab).style.color="";
}

function mailIt () {
	domain = "suzukiportland";
	me = "catherine";
	theAddress = "mailto:" + me + "@" + domain + ".com?Subject=Website Response";
	document.location = theAddress;
}

function mailIt2 () {
	domain = "hotmail";
	me = "valdineritchie";
	theAddress = "mailto:" + me + "@" + domain + ".com?Subject=Website Response";
	document.location = theAddress;
}

function checkIt (form) {

	first = new String ("");
	last = new String ("");
	city = new String ("");
	state = new String ("");
	phone = new String ("");
	email = new String ("");
	
	first = document.forms[0].first.value;
	last = document.forms[0].last.value;
	city = document.forms[0].city.value;
	state = document.forms[0].state.value;
	phone = document.forms[0].phone.value;
	email = document.forms[0].email.value
	
	if ( first == "") {
		alert ("Please enter your first name.");
		document.forms[0].first.focus();
		return false;
	}
	
		if ( last == "") {
		alert ("Please enter your last name.");
		document.forms[0].last.focus();
		return false;
	}
	
		if ( city == "") {
		alert ("Please enter your city.");
		document.forms[0].city.focus();
		return false;
	}
	
		if ( state == "") {
		alert ("Please enter your state/province name. If you are not in the United States or Canada, you may enter 0");
		document.forms[0].state.focus();
		return false;
	}
	
		if (phone == "") {
		alert ("Please enter your telephone number.");
		document.forms[0].phone.focus();
		return false;
	}
	
	if (phone.length < 10) {
		alert ("Your telephone number appears to be too short. If you are in the United States or Canada, we require and area code, otherwise, please include your country code.");
	document.forms[0].phone.focus();
	return false
}

	
		if (email == "") {
		alert ("Please enter your email address.");
		document.forms[0].email.focus();
		return false;
	}
	
	
	atSign = document.forms[0].email.value.indexOf("@");
 	dotSign = document.forms[0].email.value.lastIndexOf(".");
 	spaceCase = document.forms[0].email.value.indexOf(" ");
 	atDot = dotSign - atSign;
 	
 	 if (atSign == -1 || atSign == 0 || dotSign == - 1 || dotSign == 0 || atDot == 1 || spaceCase != -1) {
 	alert("Email address is not valid. Email addresses should be formatted as name@provider.com")
 	document.forms[0].email.focus ();
 	return false;
 	}
 	x = new Number (0);
 	
 	for (i = 10; i < 15; i++) {
 		if (document.forms[0].elements[i].checked == true) {
 			x++;
 		}
 	}
 	if (x == 0) {
 	
 	alert ("You have not checked a box indicating your interest. \rPlease check at least one box");
	document.forms[0].elements[10].focus();
	return false;
	}
 	
 }