var notext = new Array(); function doclear(f)  { if (notext[f.id] != true) { f.value = ''; notext[f.id]=true; } }