I have a form that "activates" the submit button; switching a greyed out version that does nothing for the working one, when all the fields are correctly filled in. The problem arises in IE 7 when the submit button is supposed to be activated. The greyed one disappears, but the real one doesn't appear.
//Define Submit Buttons----------------------------------------------------------------
submit = document.getElementById('submit');
submitNull = document.getElementById('submitNull');
//Error checker and button revealer
function errorCheck() {
var execute = true;
for(i = 0; i < 4; i++) {
if(errors[i] === true) execute = false;}
if(execute === true) {regKeyCheck();}}
function regKeyCheck() {
if(BrowserDetect.browser != "Explorer") {
var valid = document.getElementById('keyFrame').contentWindow.document.getElementById("keyCheck").value;
var key = document.getElementById('keyFrame').contentWindow.document.getElementById('regKey1').value;}
else {
var valid = window.frames['keyFrame'].document.getElementById("keyCheck").value;
var key = window.frames['keyFrame'].document.getElementById("regKey1").value;}
if(valid == "true") {
document.getElementById('hiddenKey').value = key;
submitNull.style.display = "none";
submit.style.display = "block";
submit.onclick = function() {document.getElementById('form').submit();}
}
}