﻿ function comparAmount(Hiddencurbill,txtamounttopay )
 {
 
 var curbill= document.getElementById("Hiddencurbill").value;
  var amouttipay= document.getElementById("txtamounttopay").value;
  if(amouttipay=="")
  {
     alert("Payable Amount Cannot be lower than the Current Bill Amount");
     document.getElementById("txtamounttopay").focus();
     document.getElementById("txtamounttopay").value="";
      return false;
  }
      if(parseFloat(amouttipay)<parseFloat(curbill))
      {
      alert("Payable Amount Cannot be lower than the Current Bill Amount");
     document.getElementById("txtamounttopay").focus();
     document.getElementById("txtamounttopay").value="";
      return false;
      }
 }
 
 
 function checkblank(t11,t12,t13 )
 {
         var sdo= document.getElementById("t11").value;
         var binder= document.getElementById("t12").value;
         var accno= document.getElementById("t13").value;
 
         if(sdo=="")
         {
            alert("Please Enter Valid Accno");
            document.getElementById("t11").focus();
            return false;
         }
         if(binder=="")
         {
            alert("Please Enter Valid Accno");
            document.getElementById("t12").focus();
            return false;
         }
         if(accno=="")
         {
            alert("Please Enter Valid Accno");
            document.getElementById("t12").focus();
            return false;
         }
  
     
 }