comapre date
-
//*** validation function dispError() { setPage(); if(document.all("hdnInvallidVendor").value!='') { alert('Invalid vendor number :' + document.all("hdnInvallidVendor").value); document.all("hdnInvallidVendor").value=''; if( document.all("r3").style.display=="block") { document.all("txtVendor").focus(); document.all("txtVendor").select(); } else { document.all("txtVendor7").focus(); document.all("txtVendor7").select(); } } } function chkNumber(con) { var checkOK = '0123456789.'; var ch; con.value=Trim(con.value); var checkStr = con.value; var allValid = true; for (i = 0; i < checkStr.length; i++) { ch = checkStr.charAt(i); if( checkOK.indexOf(ch) == -1) { allValid=false; break; } } if(allValid==false) { alert('Invalid number.'); con.focus(); con.select(); } else { if(con.value!='') { if(parseFloat(con.value)>0) { con.value=parseFloat(con.value); } else { alert("Please enter value greater then zero!"); con.focus(); con.select(); } } } } function chkOrdNumber(con) { var checkOK = '0123456789'; var ch; con.value=Trim(con.value); var checkStr = con.value; var allValid = true; for (i = 0; i < checkStr.length; i++) { ch = checkStr.charAt(i); if( checkOK.indexOf(ch) == -1) { allValid=false; break; } } if(allValid==false) { alert('Invalid number.'); con.focus(); con.select(); } else { if(con.value!='') con.value=parseInt(con.value); } } function chkNumberRS(con) { var checkOK = '0123456789.'; var ch; con.value=Trim(con.value); var checkStr = con.value; var allValid = isNaN(checkStr); if(allValid==true) { alert('Invalid number.'); con.focus(); con.select(); } else { if(parseInt(checkStr)<0) { alert("Plese Enter Postitive Number!"); con.focus(); con.select() } else { if(con.name=='txtOrderAmnt2') { result= chkGreaterLess(con); if(result==false) { con.focus(); con.select(); } else { if(con.value!='') con.value=parseFloat(con.value); } } else { if(con.value!='') con.value=parseFloat(con.value); } } } }