function m_datadictionary_clear_start () { setTimeout('m_datadictionary_clear_do()', 1000); } function m_datadictionary_clear_do () { var element; for (count=0; count< document.forms.length; count++) { for(count1=0; count1 < document.forms[count].elements.length; count1++) { element = document.forms[count].elements[count1]; if (element.type == 'text' && element.value == '') { element.value == ''; } } } } function m_datadictionary_clear_onload() { var old = window.onload; window.onload = function() { if (old) { old(); } m_datadictionary_clear_start(); }; } m_datadictionary_clear_onload();