if(document.getElementById(“schedule”).value.lastIndexOf(“.xls”) == -1)
{
alert(“Please Check The Uploaded File. Only EXCEL File Can be Uploaded”);
document.getElementById(‘schedule’).focus();
return false;
}
else if(document.getElementById(‘no’).value == “” || isNaN(document.getElementById(‘no’).value))
{
alert(“Please Check No Of Works In This Agreement.”);
document.getElementById(‘no’).focus();
return false;
}