FileExists/Function Problem
I Am Running Into A Problem And Have Narrowed It Down To This Function, As You Can See I Have Tried To DeBug it (some remains are the commented out areas), But I Cannot Figure Out What Is Wrong, Thank You For Your Help!!
Code:
function Check3() {
Name2 = document.getElementById('Name').value;
FEN = Name2+'.html';
//alert ('Check3');
if ((EN = 'EN') || (ECN == 'ECN')) {
if (FileExists(FEN) == True) {
EFE();
alert ('IF');
}
else {
alert ('ELSE');
lastcheck();
};
};
//lastcheck();
//alert ('AFTER LAST CALL');
};