function deleteimg(pid,img,mid,typep) { //alert(typep); var itemid="prod_"+mid; $("#prod_"+mid).css("display", "none"); $.ajax({ type: "POST", cache: false, url: "deleteimg.php", data: "pid="+pid+"&img="+img+"&mid="+mid+"&typep"+typep, success: function(data) { //alert(data); if(data==1) { var binish_type="1"; var binish_msg="Image has been sucessfully Deleted"; set_jnotice(binish_type, binish_msg) } } }) }