function MWSHOP_refresh_form(formid, sf){ var xfrm = document.getElementById(formid, sf); if(xfrm){ xfrm.action = '?refreshorder=1' + sf; xfrm.submit(); } } function MWSHOP_send_form(){ var xfrm = document.getElementById('payform'); if(xfrm){ xfrm.submit(); } } function __mwshop_jrun_post(xcatch,source,target){ var s = document.getElementById(source); var t = document.getElementById(target); $.post( xcatch, $(s).serialize(), function(data){ if(target!='none'){ $(t).before(data).remove(); } } ); } jQuery.fn.delay = function(time,func){ this.each(function(){ setTimeout(func,time); }); return this; }; function __mwshop_jrun_call(xcatch, title){ $(this).delay(200,function(){ $.get(xcatch, function(data){ $.jGrowl(data, { life: 5000 }); }); }); } function __mwshop_jrun_rdiosel(id,cls) { $(cls + " label").removeClass("rdiosel"); $("label[for='" + id + "']").addClass("rdiosel"); }