function highlight(field)
{
	if(document.getElementById(field).value == '')
		document.getElementById(field).className = 'empty';
	else
		document.getElementById(field).className = 'full';	
}

function highlightbox(field)
{
	if(document.getElementById(field).value == '')
		document.getElementById(field).className = 'emptybox';
	else
		document.getElementById(field).className = 'fullbox';	
}

function SendContactEmail(name,email,phone,enquiry)
{
	var xmlHttp;
	try
	  {
		  // Firefox, Opera 8.0+, Safari
		  xmlHttp=new XMLHttpRequest();
	  }
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			document.getElementById('status').innerHTML = xmlHttp.responseText;
		}
		else
		{
			document.getElementById('status').innerHTML = 'Validating Contact Emails, please wait..';			
		}
	}
	xmlHttp.open("GET","contact_send.php?name="+name+"&email="+email+"&phone="+phone+"&enquiry="+enquiry,true);
	xmlHttp.send(null);		
}
