function getManset(blogID) {
jQuery("#testing_div").html('<div style="width:100%; height=324px; padding-left:150px; padding-top:100px;"><img src="/images/loading_circle.gif" border=0></div>');
	jQuery.ajax({
		url: '/getManset.php',
		type: 'POST',
		data: 'myblog_id='+blogID,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#testing_div").html(response);

	
		}
	});
	return;
} 


function message_ajax(error, notify, adult) {
jQuery("#message_div").html('');
	jQuery.ajax({
		url: '/getmessage.php', 
		type: 'POST',
		data: 'error='+error+'&notify='+notify+'&adult='+adult,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#message_div").html(response);

	
		}
	});
	return;
} 

function what_to_do(width, height) {
jQuery("#what_to_do_div").html('');
	jQuery.ajax({
		url: '/what_to_do.php', 
		type: 'POST',
		data: 'width='+width+'&height='+height,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#what_to_do_div").html(response);

	
		}
	});
	return;
} 

function getItems(itemtype, fav, page) {
jQuery("#items_div").html('<div align=center><br><br><img src="/images/loading_circle.gif" border=0></div>');
	jQuery.ajax({
		url: '/getitems.php', 
		type: 'POST',
		data: 'myitemtype='+itemtype+'&fav='+fav+'&page='+page,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#items_div").html(response);

	
		}
	});
	return;
} 

function searchItems(q_items, types, page) {
jQuery("#items_div").html('<div align=center><br><br><img src="/images/loading_circle.gif" border=0></div>');
	jQuery.ajax({
		url: '/searchitems.php', 
		type: 'POST',
		data: 'q_items='+q_items+'&types='+types+'&page='+page,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#items_div").html(response);

	
		}
	});
	return;
} 

function commonprocess(itemtype, item_id, which) {
document.getElementById('loginform').style.display='block';
jQuery("#loginform").html('<div style="float:right; padding-right:10px;"><a href="javascript:;" onclick="document.getElementById(\'loginform\').style.display=\'none\';"><img src="/images/remove.gif" border="0"></a></div><div style="clear:both;"></div><div style="padding-top:50px; margin-bottom:20px;"><img src="/images/loading_circle.gif" border=0></div>');
	jQuery.ajax({
		url: '/commonprocess.php', 
		type: 'POST',
		data: 'which='+which+'&myitemtype='+itemtype+'&myitem_id='+item_id,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#loginform").html(response);

	
		}
	});
	return;
}

function celebprocess(celeb_id, itemtype, item_id, which) {
document.getElementById('loginform').style.display='block';
jQuery("#loginform").html('<div style="float:right; padding-right:10px;"><a href="javascript:;" onclick="document.getElementById(\'loginform\').style.display=\'none\';"><img src="/images/remove.gif" border="0"></a></div><div style="clear:both;"></div><div style="padding-top:50px; margin-bottom:20px;"><img src="/images/loading_circle.gif" border=0></div>');
	jQuery.ajax({
		url: '/commonprocess.php', 
		type: 'POST',
		data: 'which='+which+'&myceleb_id='+celeb_id+'&myitemtype='+itemtype+'&myitem_id='+item_id,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#loginform").html(response);

	
		}
	});
	return;
}

function selectplaylist(video_id, playlist_id) {
document.getElementById('loginform').style.display='block';
jQuery("#loginform").html('<div style="float:right; padding-right:10px;"><a href="javascript:;" onclick="document.getElementById(\'loginform\').style.display=\'none\';"><img src="/images/remove.gif" border="0"></a></div><div style="clear:both;"></div><div style="padding-top:50px; margin-bottom:20px;"><img src="/images/loading_circle.gif" border=0></div>');
	jQuery.ajax({
		url: '/commonprocess.php', 
		type: 'POST',
		data: 'which=selectplaylist&myvideo_id='+video_id+'&myplaylist_id='+playlist_id,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#loginform").html(response);

	
		}
	});
	return;
}

function addingplaylist(video_id, playlist_name) {
document.getElementById('loginform').style.display='block';
jQuery("#loginform").html('<div style="float:right; padding-right:10px;"><a href="javascript:;" onclick="document.getElementById(\'loginform\').style.display=\'none\';"><img src="/images/remove.gif" border="0"></a></div><div style="clear:both;"></div><div style="padding-top:50px; margin-bottom:20px;"><img src="/images/loading_circle.gif" border=0></div>');
	jQuery.ajax({
		url: '/commonprocess.php', 
		type: 'POST',
		data: 'which=addingplaylist&myvideo_id='+video_id+'&myplaylist_name='+playlist_name,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#loginform").html(response);

	
		}
	});
	return;
}

function ajaxlogin(itemtype, item_id, which, username, password) {
jQuery("#loginform").html('<div style="float:right; padding-right:10px;"><a href="javascript:;" onclick="document.getElementById(\'loginform\').style.display=\'none\';"><img src="/images/remove.gif" border="0"></a></div><div style="clear:both;"></div><div style="padding-top:50px; margin-bottom:20px;"><img src="/images/loading_circle.gif" border=0></div>');

	jQuery.ajax({
		url: '/login.php', 
		type: 'POST',
		data: 'what=common&which='+which+'&myitemtype='+itemtype+'&myitem_id='+item_id+'&username='+username+'&password='+password,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#loginform").html(response);

	
		}
	});
	return;
}

function make_order(itemtype, item_id, order_no) {
jQuery("#loginform").html('<div style="float:right; padding-right:10px;"><a href="javascript:;" onclick="document.getElementById(\'loginform\').style.display=\'none\';"><img src="/images/remove.gif" border="0"></a></div><div style="clear:both;"></div><div style="padding-top:50px; margin-bottom:20px;"><img src="/images/loading_circle.gif" border=0></div>');

	jQuery.ajax({
		url: '/commonprocess.php', 
		type: 'POST',
		data: 'which=make_order&myitemtype='+itemtype+'&myitem_id='+item_id+'&order_no='+order_no,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#loginform").html(response);

	
		}
	});
	return;
}

function non_adult(itemtype, item_id) {
jQuery("#loginform").html('<div style="float:right; padding-right:10px;"><a href="javascript:;" onclick="document.getElementById(\'loginform\').style.display=\'none\';"><img src="/images/remove.gif" border="0"></a></div><div style="clear:both;"></div><div style="padding-top:50px; margin-bottom:20px;"><img src="/images/loading_circle.gif" border=0></div>');

	jQuery.ajax({
		url: '/commonprocess.php', 
		type: 'POST',
		data: 'which=non_adult&myitemtype='+itemtype+'&myitem_id='+item_id,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#loginform").html(response);

	
		}
	});
	return;
}

function showitem(itemtype, item_id) {
document.getElementById('itemmod').style.display='block';
jQuery("#itemmod").html('<div style="float:right; padding-right:10px;"><a href="javascript:;" onclick="document.getElementById(\'itemmod\').style.display=\'none\';"><img src="/images/remove.gif" border="0"></a></div><div style="clear:both;"></div><div style="padding-top:50px; margin-bottom:20px;"><img src="/images/loading_circle.gif" border=0></div>');
	jQuery.ajax({
		url: '/commonprocess.php', 
		type: 'POST',
		data: 'which=showitem&myitemtype='+itemtype+'&myitem_id='+item_id,
		timeout: 10000,
		error: function(){
			//alert('hata olustu.');
		},
		success: function(response){
		//	jQuery("#currentConditionText").html(response);
	//		jQuery("#cond_waiting_div").html('');
			//alert(response);
			jQuery("#itemmod").html(response);

	
		}
	});
	return;
}

function less_more(id) {
		
	if (id == "desc_more") {
		document.getElementById('desc_more').style.display='none';
		document.getElementById('desc_less').style.display='block';
	} else if (id == "desc_less") {
		document.getElementById('desc_more').style.display='block';
		document.getElementById('desc_less').style.display='none';
	}
 
}