var helper = {
    modal : {
        wnd :   '<div id="rcontainer" class="blockform" style="display:none;position:absolute;width:40px;height:40px;overflow:hidden"><h2><span></span></h2><div id="icnt" class="box"></div></div>',
        txt :   '<textarea id="repedit" class="infieldset" style="width:334px; height:200px;margin:0 auto;"></textarea>',
        btnok:  '<input type=button value="ok" id="updaterep">',
        btncan: '<input type=button value="cancel" id="ibtncan">',
        cancel: function(){$('#rcontainer').hide().css({width:60,height:60});}
    },
    busy    :   '<img id="busy" src="img/busy.gif" alt="loading" />',
    r   :   {},
    unserialize : function(p){p=p.substring(p.indexOf('?')+1,p.length);p=p.split('&');this.r={};for(i in p){s=p[i].split('=');this.r[s[0]]=s[1];}}
}
$(document).ready(function(){
    $('.pun').append(helper.modal.wnd);
})
