A=getcount(); if(document.getElementById('counter') || null){ document.getElementById('counter').innerHTML=A;} function getcount() { return '0'; }