setTimeout(infoTimeout, 1000)
function hideTextTimeout() {
timeout = timeout - 1;
if (timeout > 0) {
// show message to say that saving is completed
document.getElementById(_messageDiv).innerHTML = "message";
setTimeout(hideText, 1000); // call reculsively
}
else {
// clear message
document.getElementById(_messageDiv).innerHTML = "";
}
}