function ValidateCaseSave(theForm) {
var reason = "";


  reason += validateEmpty(theForm.case_title_user);
  reason += validateEmpty(theForm.case_summary);
  reason += validateEmpty(theForm.case_state);
  
  	  if (reason != "") {
		document.getElementById('error_message_area').innerHTML = reason; return false;
	  }else{
		return true;
	  }
}
function validateEmpty(fld) {
    var error = "";
 
    if (fld.value.length == 0) {
        fld.style.background = 'Yellow'; 
        error = "Field can not be blank!<br/>"
    } else {
        fld.style.background = 'White';
    }
    return error;  
}
/////////////////
function iAgree(theForm) {
if(theForm.iagree.checked == true) {theForm.Submit.disabled = false }
if(theForm.iagree.checked == false) {theForm.Submit.disabled = true }
}
