function inputPlaceholder(a,f){if(!a)return null;if(a.placeholder&&'placeholder'in document.createElement('input'))return a;var d=f||'#AAA';var e=a.style.color;var b=a.getAttribute('placeholder');if(a.value===''||a.value==b){a.value=b;a.style.color=d}var c=/*@cc_on'attachEvent'||@*/'addEventListener';a[c](/*@cc_on'on'+@*/'focus',function(){a.style.color=e;if(a.value==b){a.value=''}},false);a[c](/*@cc_on'on'+@*/'blur',function(){if(a.value===''){a.value=b;a.style.color=d}else{a.style.color=e}},false);a.form&&a.form[c](/*@cc_on'on'+@*/'submit',function(){if(a.value==b){a.value=''}},false);return a}
