/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


  function checkChar(charKeyed,remChar,limit)
            {

                if(charKeyed.value.length>limit)
                {
                    alert("Pls keep it within 2000 characters")
                    charKeyed.value=charKeyed.value.substring(0,limit);
                }
                else
                {
                    remChar.value=limit-charKeyed.value.length;
                }
            }


     function checkPage()
     {
         var cust_name=document.fdbk_form.cname.value;
         var cust_email=document.fdbk_form.cemail.value;
         var cust_fdbkt=document.fdbk_form.fbtype.value;
         var cust_subject=document.fdbk_form.csubj.value;
         var cust_message=document.fdbk_form.fdbox.value;

         if(((cust_name&&cust_email&&cust_subject&&cust_message)=="")||(cust_fdbkt=="blankfld"))
             {
                 alert("Please complete all fields before submitting.");
                 return false;
             }
         else
             return true;
     }
