function CheckName(DCRname) { alert("Length is " + DCRname.length ); if (DCRname.length < 10) { alert("The filename less than 10.."); return true; } else { alert("The filename chosen has length greater than 10..."); return false; }}