

		function ValidateSearchAround()
		{
		 if(document.SearchAround.GC_city.value =='')
			{
				document.getElementById('ErrorMsg').style.display = 'block';
			}
		 else
			{
					if(document.SearchAround.C00.checked)
					{
						document.location.href = 'http://stagingclient.maporama.com/idl/kerastase_NL/drawsa.aspx?xsl=map&xml=map&MD_height=263&MD_width=370&MD_scale=0.00013333&Lang='+ document.SearchAround.Lang.value +'&GC_country='+ document.SearchAround.GC_country.value +'&GC_address='+ document.SearchAround.GC_address.value +'&GC_city='+ document.SearchAround.GC_city.value +'&GC_zip='+ document.SearchAround.GC_zip.value +'&SA_config=kerastase_NL_01'+'&SA_fields=C00&SA_values=1&SA_offset=0';
					}
					else
					{
						document.SearchAround.submit();
						return false;
					}
		   }
		}


	function ValidateEmailExport()
	{
		if(document.SendEmail.EX_from.value =='')
		{
		    document.getElementById('ErrorMsg2').style.display = 'none';
			document.getElementById('ErrorMsg1').style.display = 'block';
		}
		else
		{
		    if(document.SendEmail.EX_to.value =='')
		    {
		        document.getElementById('ErrorMsg1').style.display = 'none';
		        document.getElementById('ErrorMsg2').style.display = 'block';
		    }
		    else
		    {
			    document.SendEmail.submit();
			    return false;		    
		    }
		}		
	}




// Drive me section BEGIN


			function GetObj(objectId)
			{
				// Compatible NN IE FIREFOX method
				if (document.getElementById && document.getElementById(objectId) != null)
				return document.getElementById(objectId);
				else if (document.layers && document.layers[objectId] != null)
				return document.layers[objectId];
				else if (document.all)
				return document.all[objectId];
			}
				
			function CheckCountry(val)
			{
				if(val=="US" || val=="FR" || val=="AT" || val=="UK")
				{GetObj('states').style.display='block';}
				else{GetObj('states').style.display='none';}
			}

			function ValidateDriveme()
			{
				if(document.DrivingDirections.ITI_START_city.value =='')
					 {
						document.getElementById('ErrorMsg').style.display ='block';
					 }
					 else
					 {
						document.DrivingDirections.submit();
						return false;
					 }
			}
