var t = true;

function clearInput(id) {
    if (t == true) {
		    document.getElementById(id).value="";
		}
		t = false;
}
