function doDCRName(dcrName) { if(dcrName.substr(dcrName.length - 2 != "_f") { alert("The filename must end in '_f', e.g. " + dcrName + "_f."); return false; } else { return true; }}