function MWSHOP_refresh_form(formid){
var xfrm = document.getElementById(formid);
if(xfrm){
xfrm.action = '?refreshorder=1';
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");
}
function __mwshop_jrun_orderlistdetail(id){
var t = document.getElementById('oulboxid_' + id);
var target = 'oulboxid_' + id;
var xcatch = '/?weeboapi=MWSHOP_orderlist_showdetail&qs=' + id;
if(t){
$.get(xcatch,
function(data){
if(target!='none'){
$(t).before(data).remove();
}
}
);
} else {
$("div#" + 'ouldetid_'+id).replaceWith('
');
}
}