// JavaScript Document

var getName;
var getReason;
var getMessage;
var added;
var returnMessage = '';


function validForm(){
	
	returnMessage = 'Please complete the following information : ';
	added = 0;
	
	getName = document.getElementById("name").value;
	getReason = document.getElementById("reason_for_contact").value;
	getMessage = document.getElementById("typed_message").value;
	
 if (getName == '' || getName== null || getName== ' '){added = 1; returnMessage += 'your name';}
 if (added == 1){returnMessage += ', ';}
 if (getReason == 'Select'){added = 1;  returnMessage += 'a reason for contacting us';}
 if (getMessage == '' || getMessage== null || getMessage== ' '){if (added == 1){returnMessage += ' and ';} returnMessage += 'your message';}
 
	 if (added == 1){
      returnMessage += '.';
	  document.getElementById("errMsg").style.width = '550px';
      document.getElementById("errMsg").style.height = '30px';
	  document.getElementById("errMsg").innerHTML = (returnMessage);
	  return false;
	} else {
		return true;
	}

}//end function

