// JavaScript Document

$(document).ready(function() {

	var contact_btn = $('#cmdSubmit');
	
	
	var contact_form = $('#form1');
	var form_panel = $('.input-form');
		
	
	contact_btn.click( function() {
		
		
		var no_err = true;
		var s_err = '';
						
		s_err += YY_checkform('form1','name','#q','0','Field \'Name\' is not valid.','contactnumber','#q','0','Field \'Contact Number\' is not valid.','address','#q','0','Field \'Address\' is not valid.','email','#S','2','Field \'E-mail Address\' is not valid.','subject','#q','0','Field \'Subject\' is not valid.','message','3','1','Field \'Message\' is not valid.');

		
		if ( s_err != '') {
			// return error
			no_err = false;
			sv_prompt ( '<strong>The required information is incomplete or contains errors:</strong><br /><br />'+ s_err, form_panel );
		}
	
		return no_err;
	
	})


})