selected=null


	function RollOn(object, colour){
		if (!nn4){
			object.className = colour;
			//object.style.background=colour;
		}
	}
	
	

	function OpenForm(url)
	{
		var winTop = (screen.height/2) - 350;
		var winLeft = (screen.width/2) - 250;
		var windowFeatures = "width=446,height=630,toolbar=no,scrollbars=yes,status=no,";
		windowFeatures = windowFeatures + "left=" + winLeft + ",";
		windowFeatures = windowFeatures + "top=" + winTop;
		newWindow = window.open(url,'Details',windowFeatures);
				
	}
	
					

	function OpenMap(url)
	{
		var winTop = (screen.height/2) - 600;
		var winLeft = (screen.width/2) - 435;
		var windowFeatures = "width=600,height=435,toolbar=no,scrollbars=no,statusbar=no";
		windowFeatures = windowFeatures + "left=" + winLeft + ",";
		windowFeatures = windowFeatures + "top=" + winTop;
		newWindow = window.open(url,'Details',windowFeatures);
				
	}
				

					

	function formCheck(){
		var errorList = "";
		var errors = false;
		// Check name field
		if (document.form1.INPUT_name.value.length <3){
			errorList += "A full name is required.\n"
			errors = true;
		}
		// Check company name field
		if (document.form1.INPUT_company_name.value.length <3){
			errorList += "A full company name is required.\n"
			errors = true;
		}
		// Check email address field
		if (document.form1.INPUT_email.value.length <8){
			errorList += "A correct email address is required.\n"
			errors = true;
		}
		// ERROR REPORTING
		if (errors == true){
			alert ('Please complete the form to continue.\n\n'+errorList);
		}
		// SUBMIT FORM
		if (errors != true){
			document.form1.submit();
		}
	}


