var moreItm = new String();
	var form;
	var validItems = new Array();
	validItems = [

		// BEGIN EDIT ------------------------------

			["name","Your Name"],
			["email","Your Email Address"],
			["phone","Your Phone Number"]
					
		// END EDIT --------------------------------

		     ]

	function validate(form) {

		var count = 0;
		for (var i = 0; i < validItems.length; i++) {
			if (eval("form." + validItems[i][0] + ".value") == "") {
				count++;
			}
		}

		if (count > 0) {
			checkMissing(form);
			
			var msg = "All of the required fields have not been entered.\n";
				msg += "Please enter the following fields and re-submit:";
			    msg += "\n______________________________________\n";
			    msg += moreItm;
			    msg += "\n______________________________________\n";
			    msg += "\nThank-You\n";

			alert(msg);
			moreItm = "";
			return false;
		} else {
			return true;
		}

	}

	function checkMissing(form) {

		for (var x = 0; x < validItems.length; x++) {
			if (eval("form." + validItems[x][0] + ".value") == "") {
				//var myForm = document.forms[0].validItems[x][0]
				eval("form." + validItems[x][0] + ".style.background = '#ffffcc'");
				moreItm += "\n- " + validItems[x][1];
			} else {
				eval("form." + validItems[x][0] + ".style.background = '#FFFFFF'");
			}
		}
	}
	
	function removeColor(form) {
		for (var i=0; i<form.elements.length; i++) {
			form.elements[i].style.background = '#FFFFFF';
		}
	}
	
	
	
	activateMenu = function(nav) {
			/* currentStyle restricts the Javascript to IE only */
			if (document.all && document.getElementById(nav).currentStyle) {  
				var navroot = document.getElementById(nav);
				/* Get all the list items within the menu */
				var lis=navroot.getElementsByTagName("LI");  
				for (i=0; i<lis.length; i++) {
					/* If the LI has another menu level */
					if(lis[i].lastChild.tagName=="UL"){
						/* assign the function to the LI */
						lis[i].onmouseover=function() {		
						   /* display the inner menu */
						   this.lastChild.style.display="block";
						}
						lis[i].onmouseout=function() {                       
							this.lastChild.style.display="none";
						}
					}
				}
			}
		}
		activateMenu = function(request) {
			/* currentStyle restricts the Javascript to IE only */
			if (document.all && document.getElementById(request).currentStyle) {  
				var navroot = document.getElementById(request);
				/* Get all the list items within the menu */
				var lis=navroot.getElementsByTagName("LI");  
				for (i=0; i<lis.length; i++) {
					/* If the LI has another menu level */
					if(lis[i].lastChild.tagName=="UL"){
						/* assign the function to the LI */
						lis[i].onmouseover=function() {		
						   /* display the inner menu */
						   this.lastChild.style.display="block";
						}
						lis[i].onmouseout=function() {                       
							this.lastChild.style.display="none";
						}
					}
				}
			}
		}
		activateMenu = function(contactus) {
			/* currentStyle restricts the Javascript to IE only */
			if (document.all && document.getElementById(contactus).currentStyle) {  
				var navroot = document.getElementById(contactus);
				/* Get all the list items within the menu */
				var lis=navroot.getElementsByTagName("LI");  
				for (i=0; i<lis.length; i++) {
					/* If the LI has another menu level */
					if(lis[i].lastChild.tagName=="UL"){
						/* assign the function to the LI */
						lis[i].onmouseover=function() {		
						   /* display the inner menu */
						   this.lastChild.style.display="block";
						}
						lis[i].onmouseout=function() {                       
							this.lastChild.style.display="none";
						}
					}
				}
			}
		}
		activateMenu = function(aboutus) {
			/* currentStyle restricts the Javascript to IE only */
			if (document.all && document.getElementById(aboutus).currentStyle) {  
				var navroot = document.getElementById(aboutus);
				/* Get all the list items within the menu */
				var lis=navroot.getElementsByTagName("LI");  
				for (i=0; i<lis.length; i++) {
					/* If the LI has another menu level */
					if(lis[i].lastChild.tagName=="UL"){
						/* assign the function to the LI */
						lis[i].onmouseover=function() {		
						   /* display the inner menu */
						   this.lastChild.style.display="block";
						}
						lis[i].onmouseout=function() {                       
							this.lastChild.style.display="none";
						}
					}
				}
			}
		}
		window.onload= function(){
		   activateMenu('nav');  
		   activateMenu('request');
		   activateMenu('contactus');  
		   activateMenu('aboutus');  
		}
