// JavaScript Document

	var h = '::::: PLEASE NOTE :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n\n';
	var b = '\n\n::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::';

function contactUs(){
	var ff = document.fixForm

		
		 if( ff.contactPerson.value=='')
		{	
		alert(h + 'Enter the name of a contact person.' + b);
		ff.contactPerson.select();
		}
		else if(ff.enquiry.value=='')
		{
		alert(h + 'Write a message.' + b)
		ff.enquiry.select();
		}		
		else if(ff.contactNumber.value=='')
		{
		alert(h + 'Enter a contact number.' + b)
		ff.contactNumber.select();
		}
		else if(isNaN(ff.contactNumber.value))
		{
		alert(h + 'Enter a valid number.' + b)
		
			if(isNaN(ff.contactNumber.value)){ff.contactNumber.select();}
			
		}		
		else if(ff.email.value=='')
		{
		alert(h + 'Enter your e-mail address.' + b)
		ff.email.focus();
		}
		else if(ff.email.value.indexOf('@',0)==-1 || ff.email.value.indexOf('.',0)==-1)
		{
		alert(h + 'Enter a valid e-mail address.' + b)
		ff.email.select();
		}
		else
		{
		if(confirm(h + "Send this form?" + b)){
		ff.action="contactFix.asp";
		ff.method="post";
		ff.submit()
		}
		}
		
		}
		
		function thanks(sent){
			if(sent == '1' ){
			alert('---------------------------------------\n\nfixationworks.com\nthanks you for your interest\nand will contact you shortly.\n\n---------------------------------------')}
		}