
// Form Validation
function fittervalidate() {

	
  var elist = ''
    with ( document.bookafitting ) {	    
	    if ( customername.value == "" ) { elist += 'Your Name\n' }
		if ( userphone.value == "" ) { elist += 'Your Telephone Number\n' }		
	    if ( useremail.value.indexOf("@") == -1 || useremail.value == "" ) { elist += 'A valid E-mail Address\n' }
		if ( enquiryinfo.value == "" ) { elist += 'Your Enquiry Details\n' }		
		
	}
    if ( elist != '' ) { 
        alert('The following fields are required:\n\n' + elist);
      
    } else {
		//saveFields(document.myform)
        document.bookafitting.submit(); 
    }
	
	//alert("gets to function");
	
}


