function funp_genButton(url,style) { if (!url) url=''; else url="?url="+encodeURIComponent(url); document.write(''); }