function createRequestObject(){
	var request_o; //declare the variable to hold the object.
	var browser = navigator.appName; //find the browser name
	if(browser == "Microsoft Internet Explorer"){
		/* Create the object using MSIE's method */
		request_o = new ActiveXObject("Microsoft.XMLHTTP");
	}else{
		/* Create the object using other browser's method */
		request_o = new XMLHttpRequest();
	    }
	return request_o; //return the object
}

http = createRequestObject();
/*function CountTracking(id,type){	//AddPageSection()
		url="internal_request.php?action=CountTracking&id="+id+"&type="+type;
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { }
		}
	http.send(null);
	return false;
}//ENDIF*/
function Bump(c_id,mid,type)
{
//alert("tested" + c_id);	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_bump.php?c_id="+c_id+"&mid="+mid+"&type="+type;
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		 //alert();
		 //style="text-align:center"
		 //document.getElementById("by_now_span").style.text-align="center";
		 document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;	
}
function AddtoRegulars(c_id,mid,c_type)
{
//alert("c_id" + c_id +"mid"+mid+"c_type"+c_type);	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_add_to_regulars.php?c_id="+c_id+"&mid="+mid+"&c_type="+c_type;
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		 //alert();
		 document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;	
}

function unblockFriend(id)
{
//alert(id);	
//return false;
document.getElementById("comtact_cetagories"+id).style.display="inline";
document.getElementById("comtact_cetagories"+id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_unblock_friend.php?id="+id;
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		 //alert();
		 document.getElementById("comtact_cetagories"+id).style.display="inline";
		 document.getElementById("comtact_cetagories"+id).innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;	
}

function AddtoComments(c_id)
{
//alert(c_id);
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_add_comment.php?c_id="+c_id;

		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		 //alert(http.responseText);
		 document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;	
}
function showResult(catid,lan,rating,aid)
{
document.getElementById("display_comic").innerHTML=" <font  color=#FF0000> Loading....</font>";
//var cat_array=document.getElementById("catid").value;

url="ajax_display_comic.php?catid="+catid+"&language="+lan+"&jpgrating="+rating+"&aid="+aid;
//alert(url)
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert(http.responseText);
		 document.getElementById("display_comic").innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;	
}

function showpage(page,catid,lan,rating,aid )
{
//alert(rating);
url="ajax_display_comic.php?catid="+catid+"&language="+lan+"&jpgrating="+rating+"&aid="+aid+"&page="+page;
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		//alert(http.responseText);
		 document.getElementById("display_comic").innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;	
}

function showquestionDiv(c_id,mid,type)
{
//alert(mid);
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_show_question.php?mid="+mid+"&type="+type+"&c_id="+c_id;
//		alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		//alert(http.responseText);
		 document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;	
}
function viewCartoon(mid)
{
//alert(mid);
window.location.href="artist_cartoon_detail.php?mid="+mid;
}
function showquestionSpan(mid,type,cid)
{
url="ajax_show_question.php?m_id="+mid+"&type="+type;
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		//alert(http.responseText);
		 document.getElementById("show_span_"+cid).innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;	
}
function viewComments(c_id,mid,c_type) 
{
//alert("c_id" + c_id +"mid"+mid+"c_type"+c_type);	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_view_comment.php?c_id="+c_id+"&mid="+mid+"&c_type="+c_type;
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		 //alert();
		 document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;	
}
function byNow(c_id,mid,c_type) 
{
//alert("c_id" + c_id +"mid"+mid+"c_type"+c_type);	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_commic_by_now.php?c_id="+c_id+"&mid="+mid+"&c_type="+c_type;
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		 //alert();
		 document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;	
}

function status(c_id,mid,c_status) 
{
//alert("c_id" + c_id +"mid"+mid+"c_type"+c_status);	
//return false;
 //document.getElementById("status_div_"+c_id).innerHTML="<font color='#FF00FF'>Wait..... Staus is Changing...</font>";	
url="ajax_comic_status.php?c_id="+c_id+"&m_id="+mid+"&c_status="+c_status;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("active_"+c_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);

return false;	
}
function proceedBuyNow(mid,c_id,credit,c_type,c_cause,comment)
{
//alert(""+mid+"  "+c_id+"   "+credit+"  "+c_type+"  "+c_cause+" "+comment);//ajax_proceed_buy_now.php	
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_proceed_buy_now.php?c_id="+c_id+"&m_id="+mid+"&comment="+comment+"&c_cause="+c_cause+"&credit="+credit+"&c_type="+c_type;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);


return false;	
	
}

function SubmitNow(c_id,comment)
{
//alert(""+c_id+" "+comment);//ajax_proceed_buy_now.php	
if(comment == ""){
alert("Please Enter Comments");
return false;	
}
url="ajax_proceed_submit_now.php?c_id="+c_id+"&comment="+comment;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);id="posted_comments"
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		    //document.getElementById("posted_comments"+c_id).innerHTML=http.responseText;
		 }
		}
	http.send(null);


return false;	
	
}

function storeInDeepFreezer(mid,c_id,c_type)
{
//alert();
//alert(""+mid+"  "+c_id+"   "+c_type);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_store_in_deep_freezer.php?c_id="+c_id+"&m_id="+mid+"&c_type="+c_type;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);


return false;	
	
}
function moveInMyFridj(mid,c_id,c_type)
{
//alert(""+mid+"  "+c_id+"   "+c_type);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_move_to_myfridj.php?c_id="+c_id+"&m_id="+mid+"&c_type="+c_type;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);


return false;	
	
}
function moveInMyFridjStep2(c_id,comments,flag)
{
//alert(c_id+"   "+comments);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_move_to_myfridj_step2.php?c_id="+c_id+"&comments="+comments+"&flag="+flag;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);


return false;	
	
}
function RemoveFromRegulars(c_id,mid,c_type)
{
//alert(mid);
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_remove_from_regulars.php?c_id="+c_id+"&mid="+mid+"&c_type="+c_type;
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		 //alert();
		 document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;		
	
}
function RemoveFromRegulars2(c_id,mid,c_type)
{
//alert(mid);
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_remove_from_regulars2.php?c_id="+c_id+"&mid="+mid+"&c_type="+c_type;
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		 //alert();
		 document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
         }
		}
	http.send(null);

return false;		
	
}
function removeFromMyFridj(mid,c_id,c_type)
{
//alert();
//alert(""+mid+"  "+c_id+"   "+c_type);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_remove_from_myfridj.php?c_id="+c_id+"&m_id="+mid+"&c_type="+c_type;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);


return false;	
	
}
function removeFromMyFridjStep2(c_id)
{
//alert();
//alert(""+mid+"  "+c_id+"   "+c_type);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_remove_from_myfridj_step2.php?c_id="+c_id;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);


return false;	
	
}
function buyFromMemberRequest(c_id,to_mid,from_mid,c_type){
//alert(c_id+mid+c_type);
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_commic_purchase_request.php?c_id="+c_id+"&to_mid="+to_mid+"&from_mid="+from_mid+"&c_type="+c_type;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);
return false;
}

function saleToMember(c_id,to_mid,from_mid,c_type,req_id){
//alert(c_id+to_mid+from_mid+c_type);
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_commic_sale_request.php?c_id="+c_id+"&to_mid="+to_mid+"&from_mid="+from_mid+"&c_type="+c_type;
//return false;
//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		
		 	document.getElementById("by_now_span"+req_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);
return false;	
}

function setSaleRequest(c_id,to_mid,from_mid,c_type){
//alert(c_id+mid+c_type);
document.getElementById("sale_comic_to").innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_commic_sale_request_from_member.php?c_id="+c_id+"&to_mid="+from_mid+"&from_mid="+to_mid+"&c_type="+c_type;
	//alert(url);
	//return false;
	http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("sale_comic_to").innerHTML=http.responseText;
		
		 }
		}
	http.send(null);
return false;
}
function acceptSaleToMember(c_id,to_mid,from_mid,c_type){
//alert(c_id+to_mid+from_mid+c_type);
document.getElementById("sale_comic_to").innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_commic_buy_from_member.php?c_id="+c_id+"&to_mid="+to_mid+"&from_mid="+from_mid+"&c_type="+c_type;
//return false;
//alert(url);
//return false;
        http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		
		 	document.getElementById("sale_comic_to").innerHTML=http.responseText;
		
		 }
		}
	http.send(null);
return false;	
}
function proceedBuyFromMember(c_id,to_mid,from_mid,c_type,c_cause,comments){
//alert(c_id+to_mid+from_mid+c_type);
document.getElementById("sale_comic_to").innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_commic_complete_transaction.php?c_id="+c_id+"&to_mid="+to_mid+"&from_mid="+from_mid+"&c_type="+c_type+"&c_cause="+c_cause+"&comments="+comments;
//return false;
//alert(url);
//return false;
        http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		
		 	document.getElementById("sale_comic_to").innerHTML=http.responseText;
		
		 }
		}
	http.send(null);
return false;	
}
function createFolder(mid,folder_name){
//alert(c_id+to_mid+from_mid+c_type);
url="ajax_create_folder.php?mid="+mid+"&folder_name="+folder_name;
//return false;
//alert(url);
//return false;
        http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		    document.getElementById("new_folder").style.display="none";
		 	document.getElementById("all_folders").innerHTML=http.responseText;
		
		 }
		}
	http.send(null);
return false;	
}
function setCreateFolderArea()
{
	document.getElementById("new_folder").style.display="inline";
	return false;
	}
	
function moveToMyTrade(mid,c_id,c_type)
{
// status 3 shows it is in mystore 
//alert(""+mid+"  "+c_id+"   "+c_type);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_move_to_mytrade.php?c_id="+c_id+"&m_id="+mid+"&c_type="+c_type;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);
return false;		
}
function moveToMyTradeStep2(c_id)
{
// status 3 shows it is in mystore 
//alert(c_id);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_move_to_mytrade_step2.php?c_id="+c_id;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		
		 }
		}
	http.send(null);
return false;		
}
function getMemberFolders(c_id)
{
// status 3 shows it is in mystore 
//alert(""+mid+"  "+c_id+"   "+c_type);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_get_memberfolders.php?c_id="+c_id;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;		
}
function moveToFolder(c_id,folder_id)
{
// status 3 shows it is in mystore 
//alert(""+c_id+"  "+c_id+"   "+folder_id);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_move_to_folder.php?c_id="+c_id+"&folder_id="+folder_id;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;		
}
function removeFromMyTrade(c_id)
{
// status 3 shows it is in mystore 
//alert(""+c_id+"  "+c_id);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_remove_from_mytrade.php?c_id="+c_id;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;		
}
function getcomtactCategories(mid)
{
// status 3 shows it is in mystore 
//alert(""+mid);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("comtact_cetagories"+mid).style.display="inline";
document.getElementById("comtact_cetagories"+mid).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_get_comtact_categories.php?mid="+mid;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    document.getElementById("comtact_cetagories"+mid).style.display="inline";
		 	document.getElementById("comtact_cetagories"+mid).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;		
}     ////////////
function setComtactType(mid,comtact_id,comtact_notes)
{
// status 3 shows it is in mystore 
//alert(""+mid+" "+comtact_id);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("comtact_cetagories"+mid).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_set_comtact_type.php?mid="+mid+"&comtact_id="+comtact_id+"&comtact_notes="+comtact_notes;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    
		 	document.getElementById("comtact_cetagories"+mid).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;		
}     ////////////
function comtact_hide(mid){
	document.getElementById("comtact_cetagories"+mid).style.display="none";
}
function blockMember(mid)
{
// status 3 shows it is in mystore 
//alert(""+mid+" "+comtact_id);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("comtact_cetagories"+mid).style.display="inline";
document.getElementById("comtact_cetagories"+mid).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_block_member.php?mid="+mid;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    document.getElementById("comtact_cetagories"+mid).style.display="inline";
		 	document.getElementById("comtact_cetagories"+mid).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;		
}
function proceedblockMember(mid)
{
// status 3 shows it is in mystore 
//alert(""+mid+" "+comtact_id);//ajax_proceed_buy_now.php	
//return false;
//document.getElementById("comtact_cetagories"+mid).style.display="inline";
//document.getElementById("comtact_cetagories"+mid).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_proceed_block_member.php?mid="+mid;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    document.getElementById("comtact_cetagories"+mid).style.display="inline";
		 	document.getElementById("comtact_cetagories"+mid).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;		
}
function removeComtact(mid)
{
// status 3 shows it is in mystore 
//alert(""+mid+" "+comtact_id);//ajax_proceed_buy_now.php	
//return false;
document.getElementById("comtact_cetagories"+mid).style.display="inline";
document.getElementById("comtact_cetagories"+mid).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_remove_comtact.php?mid="+mid;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    document.getElementById("comtact_cetagories"+mid).style.display="inline";
		 	document.getElementById("comtact_cetagories"+mid).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;		
}
function proceedremoveComtact(mid)
{
// status 3 shows it is in mystore 
//alert(""+mid+" "+comtact_id);//ajax_proceed_buy_now.php	
//return false;
//document.getElementById("comtact_cetagories"+mid).style.display="inline";
//document.getElementById("comtact_cetagories"+mid).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_proceed_remove_comtact.php?mid="+mid;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    document.getElementById("comtact_cetagories"+mid).style.display="inline";
		 	document.getElementById("comtact_cetagories"+mid).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;		
}
function makeBump(c_id,c_type,bump_comments){
//alert(bump_comments);
//return false;
//ajax_make_bump.php
//c_type=1 for bump
//c_type=-1 for toss
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_make_bump.php?c_id="+c_id+"&type="+c_type+"&bump_comments="+bump_comments;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    //document.getElementById("by_now_span"+c_id).style.display="inline";
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;		
}
function bumpGoBack(c_id){
document.getElementById("by_now_span"+c_id).innerHTML="";
}
function GoBack2(c_id,comment_id){
document.getElementById("del"+c_id+comment_id).innerHTML="";
}
function memberGoBack(m_id){
//alert(m_id);
document.getElementById("comtact_cetagories"+m_id).innerHTML="";
}

function blockCommicRequest(c_id,admin_comments){
//alert(c_id+admin_comments);
//ajax_make_block_request.php
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_make_block_request.php?c_id="+c_id+"&admin_comments="+admin_comments;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    //document.getElementById("by_now_span"+c_id).style.display="inline";
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;	
}
function makeRegular(c_id){
//alert(c_id);
//ajax_make_regulars.php
document.getElementById("by_now_span"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_make_regulars.php?c_id="+c_id;
	//alert(url);
		http.open("GET",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    //document.getElementById("by_now_span"+c_id).style.display="inline";
		 	document.getElementById("by_now_span"+c_id).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;	
}


function stateChanged(){                        
if (http.readyState==4 || http.readyState=="complete")    
{                  
document.getElementById("txtResult").innerHTML=http.responseText    
}    
else 
{            //alert(xmlHttp.status);    
}
}
function htmlData(url, qStr)
{   
//alert();
if (url.length==0)    
{        
document.getElementById("txtResult").innerHTML="";        
return;    
}    
//http=GetXmlHttpObject()    
if (http==null)    
{        
alert ("Browser does not support HTTP Request");        
return;    
}    
url=url+"?"+qStr;    
url=url+"&sid="+Math.random();    
alert(url);
http.onreadystatechange=stateChanged;    
http.open("GET",url,true) ;    
http.send(null);
}
function confirmRemove(){
var ok = confirm("All Comics in This Folder will be removed, Do you want to Remove Folder? ");
if(ok){
return true;
} 
else{
return false;
}
}
function setArtistComments(c_id){
document.getElementById("edit_comments"+c_id).style.display="inline";
return false;
}
function hideArtistComments(c_id){
document.getElementById("edit_comments"+c_id).style.display="none";
return false;
}
function postArtistComments(c_id,c_detail){
//alert(c_detail);
//ajax_make_regulars.php
//return false;
document.getElementById("edit_comments"+c_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_edit_artist_comments.php?c_id="+c_id+"&c_detail="+c_detail;
	//alert(url);
		http.open("POST",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    //document.getElementById("by_now_span"+c_id).style.display="inline";
		 	document.getElementById("edit_comments"+c_id).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;	
}
function displayConfimation(){
document.getElementById("update_confirmation").style.display="inline";

}
function hidedisplayConfimation(){
document.getElementById("update_confirmation").style.display="none";

}
function changedisplayMyFridj(fridjnotes_flag){
//fridjnotes_flag);  ajax_myfridjnotes_setting.php
document.getElementById("update_confirmation").innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_myfridjnotes_setting.php?fridjnotes_flag="+fridjnotes_flag;
	//alert(url);
		http.open("POST",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    //document.getElementById("by_now_span"+c_id).style.display="inline";
		 	document.getElementById("update_confirmation").innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;	

}
function aacceptJoinRequest(){
alert();


return false;	
}
function deleteComments(comment_id,c_id){
//alert("del"+comment_id+c_id);
//ajax_make_regulars.php
//return false;
document.getElementById("del"+c_id+comment_id).innerHTML=" <font  color=#FF0000> Loading....</font>";
url="ajax_delete_comments.php?c_id="+c_id+"&comment_id="+comment_id;
	//alert(url);
		http.open("POST",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    //document.getElementById("by_now_span"+c_id).style.display="inline";
		 	document.getElementById("del"+c_id+comment_id).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;	
}
function proceeddelComments(comment_id,c_id){
//alert("del"+comment_id+c_id);
//ajax_make_regulars.php
//return false;
document.getElementById("del"+c_id+comment_id).innerHTML=" <font  color=#FF0000> Deleting....</font>";
url="ajax_delete_comments_2.php?c_id="+c_id+"&comment_id="+comment_id;
	//alert(url);
		http.open("POST",url);
		http.onreadystatechange=function() {
		if (http.readyState==4) { 
		// alert();
		// document.getElementById("status_div_"+c_id).innerHTML=http.responseText;
		 //alert(http.responseText);
		    //document.getElementById("by_now_span"+c_id).style.display="inline";
		 	document.getElementById("del"+c_id+comment_id).innerHTML=http.responseText;
		    //document.getElementById("by_now_span"+c_id).innerHTML="df";
		 }
		}
	http.send(null);
return false;	
}
