 function formCheck() {
        var error = 'n';
        var errormesg = '<b>You Must Enter the Following Information:</b><br>';
               
        if (document.contact_form.contact_name.value =="") {
            document.contact_form.contact_name.style.backgroundColor = '#F00';
            var errormesg = errormesg+'You must enter a Contact Name.<br>';
            var error = 'y';
        }else {
            document.contact_form.contact_name.style.backgroundColor = '#FFFFFF';
        };
        
        if (document.contact_form.email.value =="") {
            document.contact_form.email.style.backgroundColor = '#F00';
            var errormesg = errormesg+'You must enter an Email Address.<br>';
            var error = 'y';
        }else {
            document.contact_form.email.style.backgroundColor = '#FFFFFF';
        };
        
        if (error == 'y') {
        document.getElementById('error_div').innerHTML = '<div class="error">'+errormesg+'</div>';
        //document.location='http://www.2alarmtraining.com/index.php?pageref=registration#toperrors';
        //document.location='http://lester.homelinux.com/ctb/index.php?cpage=contact';
        }
        if (error == 'n') {
        document.contact_form.submit();
        }
        };
