	function cleaned(where){
		
		if(where == "name"){
			if(document.form_email.name.value == "Full Name"){
				document.form_email.name.className='form'
				document.form_email.name.value = "";
			}
		}
		if(where == "debs"){
			if(document.form_email.phone.value == "Include country and area code."){
				document.form_email.phone.className='form'
				document.form_email.phone.value = "";
			}
		}
	}

	function check(){
		var form_email = document.form_email;
		var name       = document.name;
		var email      = document.form_email.email;
		var phone	   = document.phone;
		var message    = document.message;

		if(form_email.name.value == "" || form_email.name.value == "Full Name"){
  			document.getElementById('msg').innerHTML = "Please fill in the field name to send message";
		form_email.name.focus();
		return false
		}

		if(email.value == ""){
			document.getElementById('msg').innerHTML = "Please fill in the field email to send message";
			email.focus();
		return false
			}
		if (!email.value.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi)){
			document.getElementById('msg').innerHTML = "Please enter a valid email address";
			email.focus();
		return false;
		}

		if(form_email.query.value == ""){
				document.getElementById('msg').innerHTML = "Please enter your query";
			form_email.query.focus();
		return false
		}
		form_email.submit();
}
