var htmlForm = null;
function checkForm(doc){
	htmlForm = $(doc).html();
	if(doc.fullname.value==''){ alert('Please enter Your name'); doc.fullname.focus();return false;}	
	if(doc.email.value==''){ alert('Please enter Email'); doc.email.focus();return false;}	
	if(doc.subject.value==''){ alert('Please enter Subject'); doc.subject.focus();return false;}	
	if(doc.message.value==''){ alert('Please enter Message'); doc.message.focus();return false;}
	$('#sending').html('Sending....');
	$.post('index.php?mod=contact',{
		'fullname': doc.fullname.value,
		'email': doc.email.value,
		'subject': doc.subject.value,
		'message': doc.message.value
	},function(data){
		
		$(doc).html(data);										   
	});
	
	return false;
}

function tryagain(){
	$('#fcontact').html(htmlForm);
}
