// JavaScript Document
function checkdata(){
	var $form = $('#frmContact');
	var term1 = $form.find( 'input[name="name"]' ).val();
	var term2 = $form.find( 'input[name="email"]' ).val();

	
	
	$("#err").fadeIn('fast');

	if (term1.length < 1 || term2.length < 1) {
		$('#err').html('Please make sure that all of the spaces are filled in properly. Thanks.');
		
		return false;
	}else{
		 var f = document.getElementById("frmContact");
		 f.submit();
	}
}

function clear_form(){
	$("input").val('');
}


function hideSubmit(){
	$('#submit').fadeOut('fast');
	$('#clear').fadeOut('fast');
}


function showSubmit(){
	$('#submit').fadeIn('fast');
	$('#clear').fadeIn('fast');
}

function showSubmit2(){
	$('#submit').fadeIn('fast');
	$('#clear').fadeIn('fast');
	$('#err').html("");
}



