function validate_form ( )
{
	valid = true;

    if ( ( document.bodform.category[0].checked == false ) && ( document.bodform.category[1].checked == false  ))
        {
                alert ( "Please fill in the nomination category Tenant or Property Owner" );
                valid = false;
        }


        if ( document.bodform.name.value == "" )
        {
                alert ( "Please enter Nominee Name in the 'name' box." );
                valid = false;
        }

    if ( document.bodform.business.value == "" )
        {
                alert ( "Please enter the Nominees Business name in the 'business' box." );
                valid = false;
        }

    if ( document.bodform.phone.value == "" )
        {
                alert ( "Please enter the Nominees phone number in the 'phone' box." );
                valid = false;
        }


// only allow 0-9, hyphen and comma be entered
var checkOK = "0123456789-,";
var checkStr = bodform.phone.value;
var allValid = true;
var decPoints = 0;
var allNum = "";
for (i = 0;  i < checkStr.length;  i++)
{
ch = checkStr.charAt(i);
for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
if (ch != ",")
allNum += ch;
}
if (!allValid)
{
alert("Please enter the phone number as 123-123-1234 format.");
bodform.phone.focus();
return (false);
}


    if ( document.bodform.nominee_email.value == "" )
        {
                alert ( "Please enter the Nominees email in the 'nominees email' box. This will send a copy to the Nominee." );
                valid = false;
        }

    if ( document.bodform.nominatedby1.value == "" )
        {
                alert ( "Please enter your name in the 'nominated by' box." );
                valid = false;
        }
  
    if ( document.bodform.nominatorsphone1.value == "" )
        {
                alert ( "Please enter your phone number the 'nominators phone' box." );
                valid = false;
        }
  
     if ( document.bodform.nominatedby2.value == "" )
        {
                alert ( "Please enter 2nd nominators name in the 'nominated by 2' box." );
                valid = false;
        }
  
    if ( document.bodform.nominatorsphone2.value == "" )
        {
                alert ( "Please enter 2nd nominators phone number the 'nominators phone 2' box." );
                valid = false;

        }  if ( document.bodform.email.value == "" )
        {
                alert ( "Please enter your email in the 'email' box. If you do not have email use the word none" );
                valid = false;
        }

        return valid;
}