function showHide(divId, status) {
	document.getElementById(divId).style.display = status;
}

function hideErrorDiv() {
	var divId = document.getElementById("error");
	if(divId != null) {
		setTimeout("showHide('error', 'none')", 6000); 
	}
}

function clearId(idToClear) {
    var firstChild = "";
    var clearId = document.getElementById(idToClear);
    while (clearId.hasChildNodes()) {
        firstChild = clearId.firstChild;
        clearId.removeChild(firstChild);
    }
}