function switchArrows(){
		
		var i = 0;
		setInterval('switchArrows()',100);
		do{		
			if (document["leftArrow"].src == 'images/leftMaroonArrow.png'){
				document["rightArrow"].src = "images/rightMaroonArrow.png";
				document["leftArrow"].src = "images/leftMaroonArrow.png";	
			}
			else {
				document["rightArrow"].src = "images/rightRedArrow.png";
				document["leftArrow"].src = "images/leftRedArrow.png";
			}
		} while (i >= -1)
	}
	


var sPath = window.location.pathname;

var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);




	
	function formValidate(theForm) {
				if (theForm.Name.value == "") {
					alert("Please enter your name in the \"name\" field.\n Either First name or full name would be fine.");
					theForm.Name.focus();
					return (false);
				}
				

				if (theForm.City.value == "" || theForm.City.value==null ) {
				
						if (theForm.ZipCode.value == "" || theForm.ZipCode.value==null) {
							alert("Please enter either your Zip Code or city");
							return (false);
						}						
					}

					

					if (theForm.Phone.value == "" || theForm.Phone.value ==null) {
						if (theForm.Eml.value == "" || theForm.Eml.value==null) {
							alert("Please enter either your email address or your phone number");
							return (false);
						}
					}
					else{
						   if(theForm.Phone.value.search(/\d{3}\-\d{3}\-\d{4}/)==-1){
						      alert("The phone number you entered is not valid.\r\nPlease enter a phone number with the format xxx-xxx-xxxx.");
						      return false;
						   }
					}	
									
		
					if (theForm.msg.value == "" || theForm.msg.value ==null ) {
						alert("Please enter a short description on the kind of work you are inquiring about under the \"Needs\" field.");
						return (false);
					}
					theForm.Name.page == sPage;
					return (true);
				}





function FrontPage_Form2_Validator(theForm) {

				if (theForm.Name.value == "") {
					alert("Please enter a value for the \"Name\" field.");
					theForm.Name.focus();
					return (false);
				}

				if (theForm.Phone.value == "") {
					alert("Please enter a value for the \"Phone\" field.");
					theForm.Phone.focus();
					return (false);
				}

				if (theForm.Address.value == "") {
					alert("Please enter a value for the \"Address\" field.");
					theForm.Address.focus();
					return (false);
				}

				if (theForm.Email.value == "") {
					alert("Please enter a value for the \"Email\" field.");
					theForm.email.focus();
					return (false);
				}

				if (theForm.Needs.value == "") {
					alert("Please enter a value for the \"Needs\" field.");
					theForm.needs.focus();
					return (false);
				}
				return (true);
			}
			
function expand(s)
{
  var td = s;
  var d = td.getElementsByTagName("div").item(0);

  td.className = "menuHover";
  d.className = "menuHover";
}

function collapse(s)
{
  var td = s;
  var d = td.getElementsByTagName("div").item(0);

  td.className = "menuNormal";
  d.className = "menuNormal";
}


 


				
