
function validate(theForm)
{
	log = '';
	
	if (theForm.from.value == '')
		log += 'Email\n';
	if (theForm.subj.value == '')
		log += 'Subject\n';
	if (theForm.msg_body.value == '' )
		log += 'Message\n';
		
	if ( log == '' ) {
		theForm.func.value='contact';
		theForm.btnSend.value = 'Please wait ...';
		theForm.btnSend.disabled = true;	
		theForm.submit();
	}
	else {
		alert('Missing field(s). Please enter: \n\n' + log);		
	}
}
