Hi There,
i have this bit of JS, and i have found it is not working in IE, but it is in Firefox!!!
var doc = document.forms[0];
var currentTime = new Date();
var Month = currentTime.getMonth() + 1;
var Day = currentTime.getDate();
var Year = currentTime.getFullYear();
var Hours = currentTime.getHours();
var Minutes = currentTime.getMinutes();
if (doc.Decision[0].checked == false && doc.Decision[1].checked == false && doc.Decision[2].checked == false && doc.Decision[3].checked == false)
{
alert("Decision needs to be filled out\nbefore Engineering is marked as Complete." );
return false;
}
if (doc.EngResolution.value == “”)
{
alert("Engineering Resolution needs to be filled out\nbefore Engineering is marked as Complete." );
return false;
}
if (doc.Decision[1].checked == true || doc.Decision[3].checked == true)
{
var comboBoxValue = doc.TechJust.options[doc.TechJust.selectedIndex].text
if(comboBoxValue == "<Choose Justification>"){
alert("Technical Justification needs to be filled out\nbefore Engineering is marked as Complete." );
doc.TechJust.focus();
return false;
} //end if
} // end if
doc.EngComplete.value = “Yes”;
doc.TXLeadSigDate.value = Day + “/” + Month + “/” + Year + " " + Hours + “:” + Minutes;
checkSubmitted();
Can anyone help?
Thanks
F1H