function cambiarImagen(nuevaURL){
	document.images['fotoGrande'].src = nuevaURL;
}

function validateArea(formulario){
if (formulario.idGroup.value=='-') {
	alert("Please select one area");
	formulario.idGroup.focus();
	return false;
}return true;}
	
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage,myname,settings)
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

		function validarEmail(email) {
			if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email))
				return (true);
			else
				return (false);
		}

		function Validator(theForm)
		{

			/*
			if (theForm.how.value == ""){
					alert("Please enter a value for the \"How did you heard about us?\" field.");
					theForm.how.focus();
					return (false); 
			}

         	if (theForm.title.value == ""){
					alert("Please enter a value for the \"Title\" field.");
					theForm.title.focus();
					return (false); 
			}*/
			if (theForm.first.value == ""){
					alert("Please enter a value for the \"First name\" field.");
					theForm.first.focus();
					return (false); 
			}
        	/*
			if (theForm.last.value == ""){
					alert("Please enter a value for the \"Last name\" field.");
					theForm.last.focus();
					return (false); 
			}
			
            if (theForm.address.value == ""){
					alert("Please enter a value for the \"Address\" field.");
					theForm.address.focus();
					return (false); 
			}

         	if (theForm.town.value == ""){
					alert("Please enter a value for the \"Town\" field.");
					theForm.town.focus();
					return (false); 
			}
			if (theForm.postcode.value == ""){
					alert("Please enter a value for the \"Postcode\" field.");
					theForm.postcode.focus();
					return (false); 
			}
        	if (theForm.country.value == ""){
					alert("Please enter a value for the \"Country\" field.");
					theForm.country.focus();
					return (false); 
			}*/

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

			if (!validarEmail(theForm.email.value)){
				alert("Please enter a correct formated email.");
				theForm.email.focus();
				return (false);
			}
			return (true);
		}

