var buttset = ''; if(b1!='' && b1act!='') buttset += '<button type="button" class="dialog-button" onclick="'+b1act+'"><span class="button-text">'+b1+'</span></button>'; if(b2!='' && b2act!='') buttset += '<button type="button" class="dialog-button" onclick="'+b2act+'"><span class="button-text">'+b2+'</span></button>';
' <img src=http://imgs.su/bigsmile3/smile.gif /> '