
   function view_doc(URL) {   
      var newwindow = open(URL, "_blank", "width=600,height=450,location=0,menubar=0,scrollbars=1,resizable=0,status=0,directories=0,toolbar=1");
   }
 
   function checkForm(form) {

      var foundErr = false;
	  
		if (!foundErr && isFieldEmpty(form.title)) {
         alert("Please enter your Prayer Request Title.");
         form.title.focus();
         foundErr = true;
      }
  

      if (!foundErr && isFieldEmpty(form.requuest)) {
         alert("Please enter your Prayer Request.");
         form.requuest.focus();
         foundErr = true;
      }

      if (!foundErr && isFieldEmpty(form.name)) {
         alert("Please enter your First Name.");
         form.name.focus();
         foundErr = true;
      }

      if (!foundErr && isFieldEmpty(form.from)) {
         alert("Please enter your Email Address.");
         form.from.focus();
         foundErr = true;
      }

      if (!foundErr) {
        form.submit();
      }
   }

   function isFieldEmpty(thisField) {
      if (thisField.value.length == 0)
         return true;
      else
         return false;
   }

