var hc_picid=""; function ctpinfo(thepid) { if(typeof thepid== 'undefined') {thepid = '';} doc="/include/analytics/ctp_info.php"; hc_picid=thepid; jQuery.ajax({ url: doc, type: 'POST', cache: false, data:{thepid:thepid,theuid:userid,uphoto:userphoto}, success: function(data,resp) { if(!data.error) { if(data.somestuff != "") { jQuery('#somestuff').html(data.somestuff); jQuery('#somestuff').css('display','block'); } } }, error: function(resp, textStatus, errorThrown) { alert(resp.responseText); } }); } function ctp_active(val,blogid) { isactive=jQuery('#ctp_active').is(':checked'); theid=val; doc="/include/analytics/ctp_update_active.php"; jQuery.ajax({ url: doc, type: 'POST', cache: false, data:{isactive:isactive,theid:theid,blogid:blogid}, success: function(data,resp) { if(!data.error) { } else { alert(data.error); } }, error: function(resp, textStatus, errorThrown) { alert(resp.responseText); } }); }