Hi, Thanks for your quick reply. Please find the javascript code below. <code> <pre lang="cs">function validatemodel(ddlModel,ddlPncSku,ddlBrandName,txtModelNoEdt, ddlSalesMarket,txtPilotRunDate1Edt,txtPilotRunDate2Edt, txtMassProdRunDateEdt,txtShiplogDateEdt,ddlProjectClosed) { var msg = ""; var Model_ddlst = document.getElementById(ddlModel); var Model_val; if (Model_ddlst == null) { var Model_txt = document.getElementById(txtModelNoEdt); Model_val=ElectroluxModel_txt.value; } else { Model_val = Model_ddlst.options[Model_ddlst.selectedIndex].value; } var PncSku_ddlst = document.getElementById(ddlPncSku); var PncSku_val = PncSku_ddlst.options[PncSku_ddlst.selectedIndex].value; var BrandName_ddlst = document.getElementById(ddlBrandName); var BrandName_val = BrandName_ddlst.options[BrandName_ddlst.selectedIndex].value; //alert(BrandName_val); var SalesMarket_ddlst = document.getElementById(ddlSalesMarket); var SalesMarket_val = SalesMarket_ddlst.options[SalesMarket_ddlst.selectedIndex].value; //alert(SalesMarket_val); var PilotRunDate1_txt = document.getElementById(txtPilotRunDate1Edt); var PilotRunDate1_val= PilotRunDate1_txt.value; //alert(PilotRunDate1_val); var PilotRunDate2_txt = document.getElementById(txtPilotRunDate2Edt); var PilotRunDate2_val= PilotRunDate2_txt.value; //alert(PilotRunDate2_val); var MassProdRunDate_txt = document.getElementById(txtMassProdRunDateEdt); var MassProdRunDate_val= MassProdRunDate_txt.value; //alert(MassProdRunDate_val); var ShiplogDate_txt = document.getElementById(txtShiplogDateEdt); var ShiplogDate_val= ShiplogDate_txt.value; //alert(ShiplogDate_val); var ProjectClosed_ddlst = document.getElementById(ddlProjectClosed); var ProjectClosed_val = ProjectClosed_ddlst.options[ProjectClosed_ddlst.selectedIndex].value; //alert(ProjectClosed_val); if(ElectroluxModel_val == "--Select--" || ElectroluxModel_val=="") { msg+="- Please give one valid Electrolux Model. "; } if(ElectroluxPncSku_val == "--Select--" || ElectroluxPncSku_val == null) { msg+="- Please select one valid Electrolux PNC SKU. "; } if(BrandName_val == "--Select--" || BrandName_val == null) { msg+="- Please select one valid Brand Name. "; } if(SalesMarket_val == "--Select--" || SalesMarket_val == null) { msg+="- Please select one valid Sales Market. "; } if(ProjectClosed_val == "--Select--" || ProjectClosed_val == null) { msg+="- Please select Y if the Project Closed or select N otherwise. "; } if(msg=="") { return true; } else { alert("The following fields are mandatory. " + msg); return false; } }