var abxs = window.location.hostname;
if (abxs == "localhost")
{
	var logo="http://"+abxs+"/southdel.co/images/logo.png";	
	var tb_pathXLoading="http://"+abxs+"/southdel.co/images/loading.gif";	
	var rating_save_ajax="http://"+abxs+"/southdel.co/rating_save_ajax.php";
	var classi_rating_save_ajax="http://"+abxs+"/southdel.co/classi_rating_save_ajax.php";
	var leads_rating_save_ajax="http://"+abxs+"/southdel.co/leads_rating_save_ajax.php";
	var comment_unauthorized="http://"+abxs+"/southdel.co/comment_unauthorized.php";
	var comment_classified="http://"+abxs+"/southdel.co/comment_classified.php";
	var comment_tradeleads="http://"+abxs+"/southdel.co/comment_tradeleads.php";
	var catQcontentPath="http://"+abxs+"/southdel.co/get_Qcatpage_data.php";
	var subcTContent="http://"+abxs+"/southdel.co/subcatdata_ajax.php";
	var LowersubcTContent="http://"+abxs+"/southdel.co/lowersubcatdata_ajax.php";
	var ProdsubcTContent="http://"+abxs+"/southdel.co/prodsubcatdata_ajax.php";
	var ProdLowersubcTContent="http://"+abxs+"/southdel.co/prodlowersubcatdata_ajax.php";
	var LeadssubcTContent="http://"+abxs+"/southdel.co/leadssubcatdata_ajax.php";
	var LeadsLowersubcTContent="http://"+abxs+"/southdel.co/leadslowersubcatdata_ajax.php";
	var keysQcontentPath="http://"+abxs+"/southdel.co/keys_Qpage_data.php";
	var catListingPage="http://"+abxs+"/southdel.co/cat_listing_ajax.php";
	var LeadscatListingPage="http://"+abxs+"/southdel.co/leads_listing_ajax.php";
	var surrogateComp="http://"+abxs+"/southdel.co/categories_part_ajax.php";
	var prod_categories_part_ajax="http://"+abxs+"/southdel.co/prod_categories_part_ajax.php";
	var tradessurrogateLeads="http://"+abxs+"/southdel.co/leads_categories_part_ajax.php";
	var ProdcatListingPage="http://"+abxs+"/southdel.co/prod_cat_listing_ajax.php";
	var premium_page="http://"+abxs+"/southdel.co/premium_house_ajax.php";
	var national_premium_page="http://"+abxs+"/southdel.co/national_premium_house_ajax.php";
	var international_premium_page="http://"+abxs+"/southdel.co/international_premium_house_ajax.php";
	var business_type_page="http://"+abxs+"/southdel.co/business_type_ajax.php";
	var latleadsoffers="http://"+abxs+"/southdel.co/latest_leads_ajax.php";
	var premium_latleadsoffers="http://"+abxs+"/southdel.co/premium_trade_leads_ajax.php";
	var LeadsBusinessType_ajax="http://"+abxs+"/southdel.co/LeadsBusinessType_ajax.php";
	var leads_indian_offers_ajax="http://"+abxs+"/southdel.co/leads_indian_offers_ajax.php";
	var leads_international_offers_ajax="http://"+abxs+"/southdel.co/leads_international_offers_ajax.php";
	var productallpagination="http://"+abxs+"/southdel.co/products_ajax.php";
	var prod_search_filter_ajax="http://"+abxs+"/southdel.co/prod_search_filter_ajax.php";
	var leads_search_filter_ajax="http://"+abxs+"/southdel.co/leads_search_filter_ajax.php";
	var companycatalogfile="http://"+abxs+"/southdel.co/company-catalog-ajax.php";
	var recent_classifieds_ajax="http://"+abxs+"/southdel.co/recent_classifieds_ajax.php";
	var plan_ajax="http://"+abxs+"/southdel.co/plan_ajax.php";
	var url="http://"+abxs+"/southdel.co/processing_order_ajax.php";
	var adurl="http://"+abxs+"/southdel.co/processing_order_ad_ajax.php";
	var statecity="http://"+abxs+"/southdel.co/state_city_ajax.php";
	var toggle_ajax="http://"+abxs+"/southdel.co/user_toggle_hide_company.php";
	var do_city_ajax="http://"+abxs+"/southdel.co/statecity_ajax.php";
	var subcat_pop_ajax="http://"+abxs+"/southdel.co/subcat_pop_ajax.php";
	var subcat2_pop_ajax="http://"+abxs+"/southdel.co/subcat2_pop_ajax.php";
	var single_enquiry_ajax="http://"+abxs+"/southdel.co/single_enquiry_ajax.php";
	var single_classi_enquiry_ajax="http://"+abxs+"/southdel.co/single_classi_enquiry_ajax.php";
	var single_leads_enquiry_ajax="http://"+abxs+"/southdel.co/single_leads_enquiry_ajax.php";
	var passforg="http://"+abxs+"/southdel.co/forgot_password_new.php";
	var passforgProcesss="http://"+abxs+"/southdel.co/forgot_password_process.php";
	var userreg="http://"+abxs+"/southdel.co/register_new.php";
	var leadsemail="http://"+abxs+"/southdel.co/leadsemail.php";
	var userenquiryresponse="http://"+abxs+"/southdel.co/userenquiryresponse.php";
	var sendallenquiries="http://"+abxs+"/southdel.co/send_bulk_enquiry.php";	
	var register_newprocess="http://"+abxs+"/southdel.co/register_new_process.php";
	var leadsemailprocess="http://"+abxs+"/southdel.co/leadsemailprocess.php";
	var classiposterprocess="http://"+abxs+"/southdel.co/classiposterprocess.php";
	var userenquiryreplyprocess="http://"+abxs+"/southdel.co/userenquiryreplyprocess.php";
	var bulk_processing_addition="http://"+abxs+"/southdel.co/bulk_processing_addition.php";
	var Leads_bulk_processing="http://"+abxs+"/southdel.co/leads_bulk_enquiry_addition.php";
	var classi_bulk_processing_addition="http://"+abxs+"/southdel.co/classi_bulk_processing_addition.php";
	var deleteEnquiry="http://"+abxs+"/southdel.co/deleteEnquiry.php";
	var addproducttocartajax="http://"+abxs+"/southdel.co/addproductstoenquiry.php";
	var search_category_fetch="http://"+abxs+"/southdel.co/search_category_fetch.php";
	var toolsPath="http://"+abxs+"/southdel.co/comment_like_ajax.php";
	var GetPrintDetail="http://"+abxs+"/southdel.co/print_detail_ajax.php";
	var tellafriendthing="http://"+abxs+"/southdel.co/email.php";
	var reportadthing="http://"+abxs+"/southdel.co/report_ad.php";
	var verifyimage="http://"+abxs+"/southdel.co/verifyimage.php";
	var path = "http://"+abxs+"/southdel.co/";
} else {
	var logo_name = abxs.split('.');
	var logo="/"+logo_name[0]+".jpg";
	var tb_pathXLoading="/images/loading.gif";
	var rating_save_ajax="/rating_save_ajax.php";
	var classi_rating_save_ajax="/classi_rating_save_ajax.php";
	var leads_rating_save_ajax="/leads_rating_save_ajax.php";
	var comment_unauthorized="/comment_unauthorized.php";
	var comment_classified="/comment_classified.php";
	var comment_tradeleads="/comment_tradeleads.php";
	var catQcontentPath="/get_Qcatpage_data.php";
	var subcTContent="/subcatdata_ajax.php";
	var LowersubcTContent="/lowersubcatdata_ajax.php";
	var ProdsubcTContent="/prodsubcatdata_ajax.php";
	var ProdLowersubcTContent="/prodlowersubcatdata_ajax.php";
	var LeadssubcTContent="/leadssubcatdata_ajax.php";
	var LeadsLowersubcTContent="/leadslowersubcatdata_ajax.php";
	var keysQcontentPath="/keys_Qpage_data.php";
	var catListingPage="/cat_listing_ajax.php";
	var LeadscatListingPage="/leads_listing_ajax.php";
	var surrogateComp="/categories_part_ajax.php";
	var prod_categories_part_ajax="prod_categories_part_ajax.php";
	var tradessurrogateLeads="/leads_categories_part_ajax.php";
	var ProdcatListingPage="/prod_cat_listing_ajax.php";
	var premium_page="/premium_house_ajax.php";
	var national_premium_page="/national_premium_house_ajax.php";
	var international_premium_page="/international_premium_house_ajax.php";
	var business_type_page="/business_type_ajax.php";
	var latleadsoffers="/latest_leads_ajax.php";
	var premium_latleadsoffers="/premium_trade_leads_ajax.php";
	var LeadsBusinessType_ajax="/LeadsBusinessType_ajax.php";
	var leads_indian_offers_ajax="/leads_indian_offers_ajax.php";
	var leads_international_offers_ajax="/leads_international_offers_ajax.php";
	var productallpagination="/products_ajax.php";
	var prod_search_filter_ajax="/prod_search_filter_ajax.php";
	var leads_search_filter_ajax="/leads_search_filter_ajax.php";
	var companycatalogfile="/company-catalog-ajax.php";
	var recent_classifieds_ajax="/recent_classifieds_ajax.php";
	var plan_ajax="/plan_ajax.php";
	var url="/processing_order_ajax.php";
	var adurl="/processing_order_ad_ajax.php";
	var statecity="/state_city_ajax.php";
	var toggle_ajax="/user_toggle_hide_company.php";	
	var do_city_ajax="/statecity_ajax.php";
	var subcat_pop_ajax="/subcat_pop_ajax.php";
	var subcat2_pop_ajax="/subcat2_pop_ajax.php";
	var single_enquiry_ajax="/single_enquiry_ajax.php";
	var single_classi_enquiry_ajax="/single_classi_enquiry_ajax.php";
	var single_leads_enquiry_ajax="/single_leads_enquiry_ajax.php";
	var passforg="/forgot_password_new.php";
	var passforgProcesss="/forgot_password_process.php";
	var userreg="/register_new.php";
	var leadsemail="/leadsemail.php";
	var userenquiryresponse="/userenquiryresponse.php";
	var sendallenquiries="/send_bulk_enquiry.php";
	var register_newprocess="/register_new_process.php";
	var leadsemailprocess="/leadsemailprocess.php";
	var classiposterprocess="/classiposterprocess.php";
	var userenquiryreplyprocess="/userenquiryreplyprocess.php";
	var bulk_processing_addition="/bulk_processing_addition.php";
	var Leads_bulk_processing="/leads_bulk_enquiry_addition.php";
	var classi_bulk_processing_addition="/classi_bulk_processing_addition.php";
	var deleteEnquiry="/deleteEnquiry.php";
	var addproducttocartajax="/addproductstoenquiry.php";
	var search_category_fetch="/search_category_fetch.php";
	var toolsPath="/comment_like_ajax.php";
	var GetPrintDetail="/print_detail_ajax.php";
	var tellafriendthing="/email.php";
	var reportadthing="/report_ad.php";
	var verifyimage="/verifyimage.php";
	var path = "/";
}
function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}
function numbersonly(myfield, e, dec)
{
	var key;
	var keychar;

	if (window.event)
	   key = window.event.keyCode;
	else if (e)
	   key = e.which;
	else
	   return true;
	keychar = String.fromCharCode(key);

	// control keys
	if ((key==null) || (key==0) || (key==8) || 
		(key==9) || (key==13) || (key==27) )
	   return true;

	// numbers
	else if ((("0123456789.-, ").indexOf(keychar) > -1))
	   return true;

	// decimal point jump
	else if (dec && (keychar == "."))
	   {
	   myfield.form.elements[dec].focus();
	   return false;
	   }
	else
	   return false;
}
function textonly(tfield, te, tdec){
	var tkey;
	var tkeychar;

	if (window.event)
	   tkey = window.event.keyCode;
	else if (te)
	   tkey = te.which;
	else
	   return true;
	tkeychar = String.fromCharCode(tkey);
	// control keys
	if ((tkey==null) || (tkey==0) || (tkey==8) || 
		(tkey==9) || (tkey==13) || (tkey==27))
	   return true;

	else if ((("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_ ").indexOf(tkeychar) > -1))
	   return true;

	// decimal point jump
	else if (tdec && (tkeychar == "."))
	   {
	   tfield.form.elements[tdec].focus();
	   return false;
	   }
	else
	   return false;
}
function collWin(divID){
	$('html, body').animate({		
		scrollTop: $("#"+divID).offset().top
	}, 2000);
}
function checkAll(theForm, cName, status) {
	for (i=0,n=theForm.elements.length;i<n;i++){
		if (theForm.elements[i].className.indexOf(cName) !=-1) {
			theForm.elements[i].checked = status;
		}
	}
}
function commacode(e){	
	var unicode=e.charCode? e.charCode : e.keyCode		
	if (unicode==44){
		return false
	}
}
function limitlength(obj, length){
	var maxlength=length
	if (obj.value.length>maxlength)
	obj.value=obj.value.substring(0, maxlength)
}
function DropDownMenu(){
	if(navigator.appVersion.indexOf("MSIE")==-1){return;}
		var i,k,g,lg,r=/\s*p7hvr/,nn='',c,cs='nmenudrp',bv='menudrops';
		for(i=0;i<10;i++){
			g=document.getElementById(bv+nn);
			if(g){
				lg=g.getElementsByTagName("li");
				if(lg){for(k=0;k<lg.length;k++){
					lg[k].onmouseover=function(){
						c=this.className;cl=(c)?c+' '+cs:cs;
						this.className=cl;
					};
					lg[k].onmouseout=function(){
						c=this.className;
						this.className=(c)?c.replace(r,''):'';
					};
				}
			}
		}
	nn=i+1;
	}
}

function toggle_visibility(id) {
	var e = document.getElementById(id);
	var split_visi_id = id.split('-');
	if(e.style.display == 'none'){
		e.style.display = 'block';
		document.getElementById("anchor_toggle_visibility"+split_visi_id[1]).style.display = 'block';
		try{ showAnswerForm(split_visi_id[1],58,'Write not more than 500 characters.'); }catch (e){};
	} else {
		e.style.display = 'none';
		document.getElementById("anchor_toggle_visibility"+split_visi_id[1]).style.display = 'block';
	}
}

function toggle_generic_visibility(id) {
	var e = document.getElementById(id);
	var split_visi_id = id.split('-');
	if(e.style.display == 'none'){
		e.style.display = 'block';		
		try{ showAnswerForm(split_visi_id[1],58,'Write not more than 500 characters.'); }catch (e){};
	} else {
		e.style.display = 'none';
	}
}

var overlayViewsArray=new Array();
var anotheraction=0;
var _$ko=document;
function $ko(_1){
return ((typeof (_1)=="string")?_$ko.getElementById(_1):_1);
}
function clearMessages(_7,_8,_9){
_8=(typeof (_8)=="undefined")?false:_8;
_9=(typeof (_9)=="undefined")?false:_9;
for(var _a=0;_a<_7.elements.length;_a++){
var _b=_7.elements[_a];
if($ko(_b.id+"_error")){
$ko(_b.id+"_error").innerHTML="";
if(_8){
$ko(_b.id+"_error").parentNode.style.display="none";
}
if(_9){
_b.value="";
}
}
}
}
function setXHRHeaders(_c){
_c.setRequestHeader("Content-length",0);
_c.setRequestHeader("Connection","close");
}
function trim(str){
try{
if(str&&typeof (str)=="string"){
return str.replace(/^\s*|\s*$/g,"");
}else{
return "";
}
}
catch(e){
return str;
}
}
function getJsonKeyForSearch(val){
return (val.replace(/[^a-zA-Z]*/g,"").toLowerCase());
}

function showAnswerForm(_b,_c,_d){
try{
var _e=$ko("hiddenFormPart"+_b);
var _f=$ko("replyText"+_b);
if(_e.style.display!=="block"){
try{
closeUserCommonOverlayForQuestion();
}
catch(e){
}
if(!isNaN(inlineOpenFormId)){
hideAnswerForm(inlineOpenFormId,16,previousMessageForInline,false);
}
inlineOpenFormId=_b;
previousMessageForInline=_d;
var _10=_f.style.height;
_10=Number(_10.substring(0,(_10.length-2)));
var _11=10;
var _12=((_c-_10)/10);
var _13=(130/10);
var _14=0;
//$(_f.id+"_counter").innerHTML="0";
_e.style.display="block";
_e.style.height=10+"px";
var _15=setInterval(function(){
_10+=_12;
_11+=_13;
_f.style.height=_10+"px";
_e.style.height=_11+"px";
_14++;
if(_14>=10){
clearInterval(_15);
_e.style.height=null;
_e.style.overflow="";
}
},(500/10));
clearMessages(_f.form,true,true);
reloadCaptcha("secimg"+_b,"seccodeForInlineAnswer");
_f.style.color="#000";
}
}
catch(e){
}
return;
}
var clFlag=new Array();
var previousMessageForInline="";
var inlineOpenFormId="";
function hideAnswerForm(_16,_17,_18,_19){
try{
var _1a=$ko("replyText"+_16);
var _1b=$ko("hiddenFormPart"+_16);
if(!_1a){
return;
}
if(typeof (_19)=="undefined"){
_19=false;
}
if(!(_16 in clFlag)){
clFlag[_16]=false;
}
if(_16==inlineOpenFormId){
inlineOpenFormId="";
}
_1b.style.overflow="hidden";
if((((_1b.style.display!=="none")&&(trim(_1a.value)==""))||(_19))&&(!clFlag[_16])){
clFlag[_16]=true;
var _1c=_1a.style.height;
_1c=Number(_1c.substring(0,(_1c.length-2)));
var _1d=130;
var _1e=((_1c-_17)/10);
var _1f=((_1d-10)/10);
var _20=0;
_1b.style.display="block";
var _21=setInterval(function(){
_1c=_1c-_1e;
_1d=_1d-_1f;
_1a.style.height=_1c+"px";
_1b.style.height=_1d+"px";
_20++;
if(_20>=10){
_1b.style.display="none";
clearInterval(_21);
clFlag[_16]=false;
}
},(500/10));
_1a.value=_18;
_1a.style.color="#a8a7ac";
}
}
catch(e){
}
return;
}

function createObjectmmm() {
var request_typemmm;
var browsermmm = navigator.appName;
if(browsermmm == "Microsoft Internet Explorer"){
request_typemmm = new ActiveXObject("Microsoft.XMLHTTP");
}else{	
request_typemmm = new XMLHttpRequest();
}
return request_typemmm;
}
var http = createObjectmmm();
var nocachewmjhe = 0;
function rate_me(vote,id_num,ip_num,units) {	
	document.getElementById("unit_ul"+id_num).innerHTML = '<div class="loading"></div>';
	nocachewmjhe = Math.random();
	http.open("get", rating_save_ajax+"?j="+vote+"&q="+id_num+"&t="+ip_num+"&c="+units+"&nocachewmjhe = "+nocachewmjhe);
	http.onreadystatechange = insertReplywmjhe;
	http.send(null);	
}
function insertReplywmjhe() {
	if(http.readyState == 4){
		var responsewmjhe = http.responseText;
		if(responsewmjhe.indexOf('|') != -1) {
            update = responsewmjhe.split('|');
            changeText(update[0], update[1]);
			var cpd = update[2];
        }
		jQuery.facebox(function() { 
		  jQuery.get(comment_unauthorized+"?comment_cid="+cpd+"&pdass=A", function(datas) {				 
			jQuery.facebox(datas)
		  })
		});
	}
}

var nocachenbbvnn = 0;
function classi_rate_me(vote,id_num,ip_num,units) {	
	document.getElementById("unit_ul"+id_num).innerHTML = '<div class="loading"></div>';
	nocachenbbvnn = Math.random();
	http.open("get", classi_rating_save_ajax+"?j="+vote+"&q="+id_num+"&t="+ip_num+"&c="+units+"&nocachenbbvnn = "+nocachenbbvnn);
	http.onreadystatechange = insertReplynbbvnn;
	http.send(null);	
}
function insertReplynbbvnn() {
	if(http.readyState == 4){
		var responsenbbvnn = http.responseText;
		if(responsenbbvnn.indexOf('|') != -1) {
            update = responsenbbvnn.split('|');
            changeText(update[0], update[1]);
			var cpd = update[2];
        }
		jQuery.facebox(function() { 
		  jQuery.get(comment_classified+"?comment_cid="+cpd+"&pdass=A", function(datafes) {				 
			jQuery.facebox(datafes)
		  })
		});
	}
}

var nocachej2093oiu = 0;
function leads_rate_me(vote,id_num,ip_num,units) {	
	document.getElementById("unit_ul"+id_num).innerHTML = '<div class="loading"></div>';
	nocachej2093oiu = Math.random();
	http.open("get", leads_rating_save_ajax+"?j="+vote+"&q="+id_num+"&t="+ip_num+"&c="+units+"&nocachej2093oiu = "+nocachej2093oiu);
	http.onreadystatechange = insertReplyj2093oiu;
	http.send(null);	
}
function insertReplyj2093oiu() {
	if(http.readyState == 4){
		var responsej2093oiu = http.responseText;
		if(responsej2093oiu.indexOf('|') != -1) {
            update = responsej2093oiu.split('|');
            changeText(update[0], update[1]);
			var cpd = update[2];
        }
		jQuery.facebox(function() { 
		  jQuery.get(comment_tradeleads+"?comment_cid="+cpd+"&pdass=A", function(datafes) {				 
			jQuery.facebox(datafes)
		  })
		});
	}
}

function changeText( div2show, text ) {
    // Detect Browser
    var IE = (document.all) ? 1 : 0;
    var DOM = 0; 
    if (parseInt(navigator.appVersion) >=5) {DOM=1};

    // Grab the content from the requested "div" and show it in the "container"
    if (DOM) {
        var viewer = document.getElementById(div2show);
        viewer.innerHTML = text;
    }  else if(IE) {
        document.all[div2show].innerHTML = text;
    }
}
var nocachedkadgic = 0;
function send_Qpagination_cat(page_limit, passId) {
	$('div#bringitQcat').css({ opacity: 0.5 }).append("<div style='position:absolute;top:280px;left:200px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");	
	nocachedkadgic = Math.random();
	http.open('get', catQcontentPath+'?pagem='+page_limit+'&alpha='+passId+'&nocachedkadgic = '+nocachedkadgic);
	http.onreadystatechange = insertReplydkadgic;
	http.send(null);
}
function insertReplydkadgic() {
	if(http.readyState == 4){
		$('div#bringitQcat').css({ opacity: 1 });
		var responsedkadgic = http.responseText;
		document.getElementById('bringitQcat').innerHTML = ''+responsedkadgic;
	}		
}

var nocacheqwawq = 0;
function send_subcat_pagination(spage_limit, pcassId) {
	var SurmynewvarX=$("span#subcat_loading").offset().left;
	var SurmynewvarY=$("span#subcat_loading").offset().top;
	$('div#subQcat').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocacheqwawq = Math.random();
	http.open('get', subcTContent+'?pagem='+spage_limit+'&cDsubcatId='+pcassId+'&nocacheqwawq = '+nocacheqwawq);
	http.onreadystatechange = insertReplyqwawq;
	http.send(null);
}
function insertReplyqwawq() {
	if(http.readyState == 4){
		$('div#subQcat').css({ opacity: 1 });
		var responseqwawq = http.responseText;
		document.getElementById('subQcat').innerHTML = ''+responseqwawq;
	}		
}

var nocacheythjr = 0;
function send_lower_cat_pagination(dpage_limit, dcassId) {	
	var SurmynewvarX=$("span#subcat_loading").offset().left;
	var SurmynewvarY=$("span#subcat_loading").offset().top;
	$('div#lowerQcat').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");	
	nocacheythjr = Math.random();
	http.open('get', LowersubcTContent+'?pagem='+dpage_limit+'&LowercatId='+dcassId+'&nocacheythjr = '+nocacheythjr);
	http.onreadystatechange = insertReplyythjr;
	http.send(null);
}
function insertReplyythjr() {
	if(http.readyState == 4){
		$('div#lowerQcat').css({ opacity: 1 });
		var responseythjr = http.responseText;
		document.getElementById('lowerQcat').innerHTML = ''+responseythjr;
	}		
}


/* leads */
var nocachealdhfg = 0;
function send_leadssubcat_pagination(spage_limit, pcassId) {
	var SurmynewvarX=$("span#leadssubcat_loading").offset().left;
	var SurmynewvarY=$("span#leadssubcat_loading").offset().top;
	$('div#leadssubQcat').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachealdhfg = Math.random();
	http.open('get', LeadssubcTContent+'?pagem='+spage_limit+'&cDsubcatId='+pcassId+'&nocachealdhfg = '+nocachealdhfg);
	http.onreadystatechange = insertReplyaldhfg;
	http.send(null);
}
function insertReplyaldhfg() {
	if(http.readyState == 4){
		$('div#leadssubQcat').css({ opacity: 1 });
		var responsealdhfg = http.responseText;
		document.getElementById('leadssubQcat').innerHTML = ''+responsealdhfg;
	}		
}

var nocachewmjmh = 0;
function send_leads_lower_cat_pagination(dpage_limit, dcassId) {	
	var SurmynewvarX=$("span#leadslowersubcat_loading").offset().left;
	var SurmynewvarY=$("span#leadslowersubcat_loading").offset().top;
	$('div#leadslowerQcat').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");	
	nocachewmjmh = Math.random();
	http.open('get', LeadsLowersubcTContent+'?pagem='+dpage_limit+'&LowercatId='+dcassId+'&nocachewmjmh = '+nocachewmjmh);
	http.onreadystatechange = insertReplywmjmh;
	http.send(null);
}
function insertReplywmjmh() {
	if(http.readyState == 4){
		$('div#leadslowerQcat').css({ opacity: 1 });
		var responsewmjmh = http.responseText;
		document.getElementById('leadslowerQcat').innerHTML = ''+responsewmjmh;
	}		
}

var nocachebgtdksiuy = 0;
function send_leads_companies_page(elimit, feeId) {
	var SurmynewvarX=$("div#leadswaitingbox").offset().left;
	var SurmynewvarY=$("div#leadswaitingbox").offset().top;
	$('div#TradeLeadsQkeys').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachebgtdksiuy = Math.random();
	http.open('get', LeadscatListingPage+'?pagem='+elimit+'&catkeyIdsode='+feeId+'&nocachebgtdksiuy = '+nocachebgtdksiuy);
	http.onreadystatechange = insertReplybgtdksiuy;
	http.send(null);
}
function insertReplybgtdksiuy() {
	if(http.readyState == 4){
		$('div#leadswaitingbox').css({ opacity: 1 });
		var responsebgtdksiuy = http.responseText;
		document.getElementById('leadswaitingbox').innerHTML = ''+responsebgtdksiuy;
	}		
}
/* leads */


var nocacheqwaprodwq = 0;
function send_prodsubcat_pagination(spage_limit, pcassId) {
	var SurmynewvarX=$("span#subcat_loading").offset().left;
	var SurmynewvarY=$("span#subcat_loading").offset().top;
	$('div#prodsubQcat').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocacheqwaprodwq = Math.random();
	http.open('get', ProdsubcTContent+'?pagem='+spage_limit+'&cDsubcatId='+pcassId+'&nocacheqwaprodwq = '+nocacheqwaprodwq);
	http.onreadystatechange = insertReplyqwaprodwq;
	http.send(null);
}
function insertReplyqwaprodwq() {
	if(http.readyState == 4){
		$('div#prodsubQcat').css({ opacity: 1 });
		var responseqwaprodwq = http.responseText;
		document.getElementById('prodsubQcat').innerHTML = ''+responseqwaprodwq;
	}		
}

var nocacheytporhdjr = 0;
function send_prodlower_cat_pagination(dpage_limit, dcassId) {
	var SurmynewvarX=$("span#subcat_loading").offset().left;
	var SurmynewvarY=$("span#subcat_loading").offset().top;
	$('div#prodlowerQcat').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");	
	nocacheytporhdjr = Math.random();
	http.open('get', ProdLowersubcTContent+'?pagem='+dpage_limit+'&LowercatId='+dcassId+'&nocacheytporhdjr = '+nocacheytporhdjr);
	http.onreadystatechange = insertReplyytporhdjr;
	http.send(null);
}
function insertReplyytporhdjr() {
	if(http.readyState == 4){
		$('div#prodlowerQcat').css({ opacity: 1 });
		var responseytporhdjr = http.responseText;
		document.getElementById('prodlowerQcat').innerHTML = ''+responseytporhdjr;
	}		
}


var nocachewpmkop = 0;
function send_companies_page(page_limit, passId) {	
	$('div#bringitQkeys').css({ opacity: 0.5 }).append("<div style='position:absolute;top:280px;left:200px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachewpmkop = Math.random();
	http.open('get', keysQcontentPath+'?pagem='+page_limit+'&key_id_decode='+passId+'&nocachewpmkop = '+nocachewpmkop);
	http.onreadystatechange = insertReplywpmkop;
	http.send(null);
}
function insertReplywpmkop() {
	if(http.readyState == 4){
		$('div#bringitQkeys').css({ opacity: 1 });
		var responsewpmkop = http.responseText;
		document.getElementById('bringitQkeys').innerHTML = ''+responsewpmkop;
	}		
}

var nocachenypjyt = 0;
function send_cat_companies_page(elimit, feeId) {
	var SurmynewvarX=$("div#waitingbox").offset().left;
	var SurmynewvarY=$("div#waitingbox").offset().top;
	$('div#companyQkeys').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachenypjyt = Math.random();
	http.open('get', catListingPage+'?pagem='+elimit+'&catkeyIdsode='+feeId+'&nocachenypjyt = '+nocachenypjyt);
	http.onreadystatechange = insertReplynypjyt;
	http.send(null);
}
function insertReplynypjyt() {
	if(http.readyState == 4){
		$('div#companyQkeys').css({ opacity: 1 });
		var responsenypjyt = http.responseText;
		document.getElementById('companyQkeys').innerHTML = ''+responsenypjyt;
	}		
}

var nocacheshiva = 0;
function surrogate_cat_company(onsip, firstc, seconds) {
	var SurmynewvarX=$("div#waitingbox").offset().left;
	var SurmynewvarY=$("div#waitingbox").offset().top;
	$('div#surrogateQkeys').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:10;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocacheshiva = Math.random();
	http.open('get', surrogateComp+'?pagem='+onsip+'&firstc='+firstc+'&seconds='+seconds+'&nocacheshiva = '+nocacheshiva);
	http.onreadystatechange = insertReplyshiva;
	http.send(null);
}
function insertReplyshiva() {
	if(http.readyState == 4){
		$('div#surrogateQkeys').css({ opacity: 1 });
		var responseshiva = http.responseText;
		document.getElementById('surrogateQkeys').innerHTML = ''+responseshiva;
	}		
}

var nocacheramashiva = 0;
function prodsurrogate_cat_company(onsip, firstc, seconds) {
	var SurmynewvarX=$("div#prodlist").offset().left;
	var SurmynewvarY=$("div#prodlist").offset().top;
	$('div#prodlist').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:10;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocacheramashiva = Math.random();
	http.open('get', prod_categories_part_ajax+'?pagem='+onsip+'&firstc='+firstc+'&seconds='+seconds+'&nocacheramashiva = '+nocacheramashiva);
	http.onreadystatechange = insertReplyramashiva;
	http.send(null);
}
function insertReplyramashiva() {
	if(http.readyState == 4){
		$('div#prodlist').css({ opacity: 1 });
		var responseramashiva = http.responseText;
		document.getElementById('prodlist').innerHTML = ''+responseramashiva;
	}		
}

var nocachebtepoi = 0;
function prod_filter_pagination(page_limit, part1, part2, part3, part4, part5, part6, part7) {
	var SurmynewvarX=$("div#prodlist").offset().left;
	var SurmynewvarY=$("div#prodlist").offset().top;
	$('#prodlist').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachebtepoi = Math.random();
	http.open('get', prod_search_filter_ajax+'?pagem='+page_limit+'&part1='+part1+'&part2='+part2+'&part3='+part3+'&part4='+part4+'&part5='+part5+'&part6='+part6+'&part7='+part7+'&nocachebtepoi = '+nocachebtepoi);
	http.onreadystatechange = insertReplybtepoi;
	http.send(null);
}
function insertReplybtepoi() {
	if(http.readyState == 4){
		$('#prodlist').css({ opacity: 1 });		
		var responsebtepoi = http.responseText;
		document.getElementById('prodlist').innerHTML = ''+responsebtepoi;
	}		
}

var nocachevcppozizud = 0;
function leads_filter_pagination(page_limit, part1, part2, part3, part4, part5, part6) {
	var SurmynewvarX=$("div#prodlist").offset().left;
	var SurmynewvarY=$("div#prodlist").offset().top;
	$('#prodlist').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachevcppozizud = Math.random();
	http.open('get', leads_search_filter_ajax+'?pagem='+page_limit+'&part1='+part1+'&part2='+part2+'&part3='+part3+'&part4='+part4+'&part5='+part5+'&part6='+part6+'&nocachevcppozizud = '+nocachevcppozizud);
	http.onreadystatechange = insertReplyvcppozizud;
	http.send(null);
}
function insertReplyvcppozizud() {
	if(http.readyState == 4){
		$('#prodlist').css({ opacity: 1 });		
		var responsevcppozizud = http.responseText;
		document.getElementById('prodlist').innerHTML = ''+responsevcppozizud;
	}		
}

var nocachebopeljfdp = 0;
function cattypes_leads_pagina(onsip, firstc, seconds) {
	var SurmynewvarX=$("div#surroTypelatleadsId").offset().left;
	var SurmynewvarY=$("div#surroTypelatleadsId").offset().top;
	$('div#surroTypelatleadsId').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:10;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachebopeljfdp = Math.random();
	http.open('get', tradessurrogateLeads+'?pagem='+onsip+'&firstc='+firstc+'&seconds='+seconds+'&nocachebopeljfdp = '+nocachebopeljfdp);
	http.onreadystatechange = insertReplybopeljfdp;
	http.send(null);
}
function insertReplybopeljfdp() {
	if(http.readyState == 4){
		$('div#surroTypelatleadsId').css({ opacity: 1 });
		var responsebopeljfdp = http.responseText;
		document.getElementById('surroTypelatleadsId').innerHTML = ''+responsebopeljfdp;
	}		
}

var nocachenypprjoydt = 0;
function send_prodcat_companies_page(elimit, feeId) {
	var SurmynewvarX=$("div#prodlist").offset().left;
	var SurmynewvarY=$("div#prodlist").offset().top;
	$('div#prodlist').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachenypprjoydt = Math.random();
	http.open('get', ProdcatListingPage+'?pagem='+elimit+'&catkeyIdsode='+feeId+'&nocachenypprjoydt = '+nocachenypprjoydt);
	http.onreadystatechange = insertReplynypprjoydt;
	http.send(null);
}
function insertReplynypprjoydt() {
	if(http.readyState == 4){
		$('div#prodlist').css({ opacity: 1 });
		var responsenypprjoydt = http.responseText;
		document.getElementById('prodlist').innerHTML = ''+responsenypprjoydt;
	}		
}

var nocachedbfbfgdt = 0;
function premium_members_pag(eleimit) {
	var SurmynewvarX=$("div#waitingbox").offset().left;
	var SurmynewvarY=$("div#waitingbox").offset().top;
	$('div#preiumQkeys').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachedbfbfgdt = Math.random();
	http.open('get', premium_page+'?pagem='+eleimit+'&nocachedbfbfgdt = '+nocachedbfbfgdt);
	http.onreadystatechange = insertReplydbfbfgdt;
	http.send(null);
}
function insertReplydbfbfgdt() {
	if(http.readyState == 4){
		$('div#preiumQkeys').css({ opacity: 1 });
		var responsedbfbfgdt = http.responseText;
		document.getElementById('preiumQkeys').innerHTML = ''+responsedbfbfgdt;
	}		
}

var nocachenational = 0;
function national_premium_members_pag(eleimit) {
	var SurmynewvarX=$("div#nationalpreiumQkeys").offset().left;
	var SurmynewvarY=$("div#nationalpreiumQkeys").offset().top;
	$('div#nationalpreiumQkeys').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachenational = Math.random();
	http.open('get', national_premium_page+'?pagem='+eleimit+'&nocachenational = '+nocachenational);
	http.onreadystatechange = insertReplynational;
	http.send(null);
}
function insertReplynational() {
	if(http.readyState == 4){
		$('div#nationalpreiumQkeys').css({ opacity: 1 });
		var responsenational = http.responseText;
		document.getElementById('nationalpreiumQkeys').innerHTML = ''+responsenational;
	}		
}

var nocacheinternational = 0;
function international_premium_members_pag(eleimit) {
	var SurmynewvarX=$("div#internationalpreiumQkeys").offset().left;
	var SurmynewvarY=$("div#internationalpreiumQkeys").offset().top;
	$('div#internationalpreiumQkeys').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocacheinternational = Math.random();
	http.open('get', international_premium_page+'?pagem='+eleimit+'&nocacheinternational = '+nocacheinternational);
	http.onreadystatechange = insertReplyinternational;
	http.send(null);
}
function insertReplyinternational() {
	if(http.readyState == 4){
		$('div#internationalpreiumQkeys').css({ opacity: 1 });
		var responseinternational = http.responseText;
		document.getElementById('internationalpreiumQkeys').innerHTML = ''+responseinternational;
	}		
}

var nocachesresbg = 0;
function business_type_pag(cemit, btpId) {	
	var SurmynewvarX=$("div#businessQkeys").offset().left;
	var SurmynewvarY=$("div#businessQkeys").offset().top;
	$('div#businessQkeys').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachesresbg = Math.random();
	http.open('get', business_type_page+'?pagem='+cemit+'&tybpid='+btpId+'&nocachesresbg = '+nocachesresbg);
	http.onreadystatechange = insertReplysresbg;
	http.send(null);
}
function insertReplysresbg() {
	if(http.readyState == 4){
		$('div#businessQkeys').css({ opacity: 1 });
		var responsesresbg = http.responseText;
		document.getElementById('businessQkeys').innerHTML = ''+responsesresbg;
	}		
}

var nocachenydtap = 0;
function latest_lead_pagina(page_limit) {
	var SurmynewvarX=$("div#leadswaiting").offset().left;
	var SurmynewvarY=$("div#leadswaiting").offset().top;
	$('div#latleadsId').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachenydtap = Math.random();
	http.open('get', latleadsoffers+'?pagem='+page_limit+'&nocachenydtap = '+nocachenydtap);
	http.onreadystatechange = insertReplynydtap;
	http.send(null);
}
function insertReplynydtap() {
	if(http.readyState == 4){
		$('#latleadsId').css({ opacity: 1 });		
		var responsenydtap = http.responseText;
		document.getElementById('latleadsId').innerHTML = ''+responsenydtap;
	}		
}

var nocachepremiiis = 0;
function premium_trade_leads_pagina(page_limit) {
	var SurmynewvarX=$("div#premium_latleadsId").offset().left;
	var SurmynewvarY=$("div#premium_latleadsId").offset().top;
	$('div#premium_latleadsId').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachepremiiis = Math.random();
	http.open('get', premium_latleadsoffers+'?pagem='+page_limit+'&nocachepremiiis = '+nocachepremiiis);
	http.onreadystatechange = insertReplypremiiis;
	http.send(null);
}
function insertReplypremiiis() {
	if(http.readyState == 4){
		$('#premium_latleadsId').css({ opacity: 1 });		
		var responsepremiiis = http.responseText;
		document.getElementById('premium_latleadsId').innerHTML = ''+responsepremiiis;
	}		
}

var nocacheiudy7sy = 0;
function business_types_leads_pagina(elimit, feeId) {
	var SurmynewvarX=$("div#businessTypelatleadsId").offset().left;
	var SurmynewvarY=$("div#businessTypelatleadsId").offset().top;
	$('div#businessTypelatleadsId').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocacheiudy7sy = Math.random();
	http.open('get', LeadsBusinessType_ajax+'?pagem='+elimit+'&catkeyIdsode='+feeId+'&nocacheiudy7sy = '+nocacheiudy7sy);
	http.onreadystatechange = insertReplyiudy7sy;
	http.send(null);
}
function insertReplyiudy7sy() {
	if(http.readyState == 4){
		$('div#businessTypelatleadsId').css({ opacity: 1 });
		var responseiudy7sy = http.responseText;
		document.getElementById('businessTypelatleadsId').innerHTML = ''+responseiudy7sy;
	}		
}


var nocache9iuyy = 0;
function indian_offers_type_pagina(elimit, feeId) {
	var SurmynewvarX=$("div#indianOffersLeadsId").offset().left;
	var SurmynewvarY=$("div#indianOffersLeadsId").offset().top;
	$('div#indianOffersLeadsId').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocache9iuyy = Math.random();
	http.open('get', leads_indian_offers_ajax+'?pagem='+elimit+'&LeadsDIndian='+feeId+'&nocache9iuyy = '+nocache9iuyy);
	http.onreadystatechange = insertReply9iuyy;
	http.send(null);
}
function insertReply9iuyy() {
	if(http.readyState == 4){
		$('div#indianOffersLeadsId').css({ opacity: 1 });
		var response9iuyy = http.responseText;
		document.getElementById('indianOffersLeadsId').innerHTML = ''+response9iuyy;
	}		
}

var nocache34uuyd = 0;
function internat_offers_type_pagina(elimit, feeId) {
	var SurmynewvarX=$("div#internatOffersLeadsId").offset().left;
	var SurmynewvarY=$("div#internatOffersLeadsId").offset().top;
	$('div#internatOffersLeadsId').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocache34uuyd = Math.random();
	http.open('get', leads_international_offers_ajax+'?pagem='+elimit+'&LeadsDInternat='+feeId+'&nocache34uuyd = '+nocache34uuyd);
	http.onreadystatechange = insertReply34uuyd;
	http.send(null);
}
function insertReply34uuyd() {
	if(http.readyState == 4){
		$('div#internatOffersLeadsId').css({ opacity: 1 });
		var response34uuyd = http.responseText;
		document.getElementById('internatOffersLeadsId').innerHTML = ''+response34uuyd;
	}		
}

var nocachesbaytta = 0;
function product_all_pagination(page_limit) {
	var SurmynewvarX=$("#prodlist").offset().left;
	var SurmynewvarY=$("#prodlist").offset().top;
	$('#prodlist').css({ opacity: 0.3 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachesbaytta = Math.random();
	http.open('get', productallpagination+'?pagem='+page_limit+'&nocachesbaytta = '+nocachesbaytta);
	http.onreadystatechange = insertReplysbaytta;
	http.send(null);
}
function insertReplysbaytta() {
	if(http.readyState == 4){
		$('#prodlist').css({ opacity: 1 });
		var responsesbaytta = http.responseText;
		document.getElementById('prodlist').innerHTML = ''+responsesbaytta;
	}		
}

var nocachemnbahagt = 0;
function company_catalog_paginate(page_limit) {
	var SurmynewvarX=$("div#companyCatalogPaginate").offset().left;
	var SurmynewvarY=$("div#companyCatalogPaginate").offset().top;
	$('#companyCatalogPaginate').css({ opacity: 0.3 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachemnbahagt = Math.random();
	http.open('get', companycatalogfile+'?pagem='+page_limit+'&nocachemnbahagt = '+nocachemnbahagt);
	http.onreadystatechange = insertReplymnbahagt;
	http.send(null);
}
function insertReplymnbahagt() {
	if(http.readyState == 4){
		$('#companyCatalogPaginate').css({ opacity: 1 });
		var responsemnbahagt = http.responseText;
		document.getElementById('companyCatalogPaginate').innerHTML = ''+responsemnbahagt;
	}		
}

var nocachebvcudy = 0;
function recent_classifieds_pagi(page_limit) {
	var SurmynewvarX=$("div#classiwaitingbox").offset().left;
	var SurmynewvarY=$("div#classiwaitingbox").offset().top;
	$('#recentClassiQid').css({ opacity: 0.5 }).append("<div style='position:absolute;top:"+SurmynewvarY+"px;left:"+SurmynewvarX+"px;z-index:5;color:#222222;font-weight:bold;'><img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>Loading...</div>");
	nocachebvcudy = Math.random();
	http.open('get', recent_classifieds_ajax+'?pagem='+page_limit+'&nocachebvcudy = '+nocachebvcudy);
	http.onreadystatechange = insertReplybvcudy;
	http.send(null);
}
function insertReplybvcudy() {
	if(http.readyState == 4){
		$('#recentClassiQid').css({ opacity: 1 });		
		var responsebvcudy = http.responseText;
		document.getElementById('recentClassiQid').innerHTML = ''+responsebvcudy;
	}		
}


var nocacheqwebgt = 0;
function toggle_user_hide_company(iD, mId, stat) {	
	document.getElementById('toggle_ajax_id'+iD).innerHTML = "<img src='"+tb_pathXLoading+"' border='0'> Please wait...";	
	nocacheqwebgt = Math.random();
	http.open('get', toggle_ajax+'?ID='+iD+'&jId='+mId+'&StaT='+stat+'&page='+abxs+'&nocacheqwebgt = '+nocacheqwebgt);
	http.onreadystatechange = insertReplyqwebgt;
	http.send(null);
}
function insertReplyqwebgt() {
	if(http.readyState == 4){
		var responseqwebgt = http.responseText;
		var toggle_comw = responseqwebgt.split("~~");
		var toggle_msg = toggle_comw[0];	
		var toggle_id = toggle_comw[1];
		document.getElementById('toggle_ajax_id'+toggle_id).innerHTML = ''+toggle_msg;
	}		
}

var nocachewoaoeow = 0;
function add_product_to_cart(PiD, BoxId){
	nocachewoaoeow = Math.random();
	http.open('get', addproducttocartajax+'?PID='+PiD+'&BoxID='+BoxId+'&page='+abxs+'&nocachewoaoeow = '+nocachewoaoeow);
	http.onreadystatechange = insertReplywoaoeow;
	http.send(null);
}
function insertReplywoaoeow() {
	if(http.readyState == 4){
		var responsewoaoeow = http.responseText;
		var ProdCarttoggle = responsewoaoeow.split("~~");
		var ProdCart_msg = ProdCarttoggle[0];	
		var ProdCart_IDs = ProdCarttoggle[1];
		var ProdCart_What = ProdCarttoggle[2];
		if(ProdCart_What == 2){
			document.getElementById('addedtoproductcart'+ProdCart_IDs).innerHTML = ''+ProdCart_msg;
			jQuery(document).ready(function($) {					
				jQuery.facebox(ProdCart_msg);
			});
		} else {
			jQuery(document).ready(function($) {					
				jQuery.facebox(ProdCart_msg);
			});			
		}
	}		
}

var nocachebregs = 0;
function do_city() {	
	var stateId = encodeURI(document.getElementById("country_states").value);
	stateId = stateId.replace(/&/gi, "^^");
	nocachebregs = Math.random();
	http.open('get', do_city_ajax+'?stateID='+stateId+'&page='+abxs+'&nocachebregs = '+nocachebregs);
	http.onreadystatechange = insertReplybregs;
	http.send(null);
}
function insertReplybregs() {
	if(http.readyState == 4){
		var responsebregs = http.responseText;	
		document.getElementById('docity').innerHTML = ''+responsebregs;
	}		
}
function password_forgot_new(pssWId){
	jQuery.facebox(function() { 
	  jQuery.get(passforg+"?page="+abxs, function(daeteads) {				 
		jQuery.facebox(daeteads)
	  })
	});
}

var nocachecokdiw = 0;
function password_retrival_new() {	
	var emails= encodeURI(document.getElementById("demailpred").value);	
	nocachecokdiw = Math.random();	
	http.open("get", passforgProcesss+"?password_recover="+emails+"&page="+abxs+"&nocachecokdiw = "+nocachecokdiw);
	http.onreadystatechange = insertReplycokdiw;
	http.send(null);
}
function insertReplycokdiw(){
	if(http.readyState == 4){
		var responsecokdiw = http.responseText;
		var rrecoepfeor = responsecokdiw.split("~");
		var reoremsg = rrecoepfeor[0];	
		var errqtpe = rrecoepfeor[1];
		if(errqtpe == 2){
			document.getElementById("formdetails").innerHTML = "";
			document.getElementById("msg_displayd").innerHTML = ''+reoremsg;
		} else {
			document.getElementById("msg_displayd").innerHTML = ''+reoremsg;
			reloadCaptcha("secimg", verifyimage);
		}
	}
}

function register_new(){
	jQuery.facebox(function() { 
	  jQuery.get(userreg+"?page="+abxs, function(datads) {				 
		jQuery.facebox(datads)
	  })
	});
}

function send_all_enquiries(){
	jQuery.facebox(function() { 
	  jQuery.get(sendallenquiries+"?page="+abxs, function(datade) {				 
		jQuery.facebox(datade)
	  })
	});
}

function email_now(jimid, jimtype){
	jQuery.facebox(function() { 
	  jQuery.get(leadsemail+"?page="+abxs+"&jimid="+jimid+"&jimtype="+jimtype, function(dataleas) {				 
		jQuery.facebox(dataleas)
	  })
	});
}

function enquiry_now(jimid, jimtype){
	jQuery.facebox(function() { 
	  jQuery.get(leadsemail+"?page="+abxs+"&jimid="+jimid+"&jimtype="+jimtype, function(dataleas) {				 
		jQuery.facebox(dataleas)
	  })
	});
}

function tell_a_friend_option(mjmid, mjmtype){
	jQuery.facebox(function() { 
	  jQuery.get(tellafriendthing+"?page="+abxs+"&post_id="+mjmid+"&stype="+mjmtype, function(deas) {				 
		jQuery.facebox(deas)
	  })
	});
}

function report_ad_option(mjmid, mjmtype){
	jQuery.facebox(function() { 
	  jQuery.get(reportadthing+"?page="+abxs+"&reportid="+mjmid+"&stype="+mjmtype, function(ddeas) {				 
		jQuery.facebox(ddeas)
	  })
	});
}

function response_enquiry(re_id, sen_id, rec_id, params){
	jQuery.facebox(function() { 
	  jQuery.get(userenquiryresponse+"?page="+abxs+"&re_id="+re_id+"&sen_id="+sen_id+"&rec_id="+rec_id+"&params="+params, function(usereneas){
		jQuery.facebox(usereneas)
	  })
	});
}

var nocacherbdgf = 0;
function process_bulk_enquiry() {
	var email= encodeURI(document.getElementById("email").value);
	var password= encodeURI(document.getElementById("password").value);
	password = password.replace(/&/gi, "^^");
	var contentThing= encodeURI(document.getElementById("enquiryContent").value);
	contentThing = contentThing.replace(/&/gi, "^^");
	var verifybox= encodeURI(document.getElementById("verify_box").value);
	nocacherbdgf = Math.random();
	http.open("POST", send_bulk_enquiry_process, true);
	http.onreadystatechange = insertReplyrbdgf;
	http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	http.send("&email="+email+"&password="+password+"&enquiryContent="+contentThing+"&page="+abxs+"&verify_box="+verifybox+"&nocacherbdgf="+nocacherbdgf);
}
function insertReplyrbdgf() {
	if(http.readyState == 4){
		var responserbdgf = http.responseText;
		var fewwde = responserbdgf.split("~");
		var eirowmsg = fewwde[0];	
		var typesiw = fewwde[1];
		if(typesiw == 2){
			jQuery(document).ready(function($) {					
				jQuery.facebox(eirowmsg);
			});
		} else {
			document.getElementById("msg_displayd").innerHTML = ''+eirowmsg;
			reloadCaptcha("secimg", verifyimage);
		}
	}
}

var nocachejucee = 0;
function register_new_user() {
	var replaceWith = "^^";
	var name= encodeURI(document.getElementById("name").value);
	name = name.replace(/&/gi, replaceWith);
	var email= encodeURI(document.getElementById("email_thing").value);
	var password= encodeURI(document.getElementById("password_thing").value);
	password = password.replace(/&/gi, replaceWith);
	var mobile= encodeURI(document.getElementById("mobiles").value);
	var verifybox= encodeURI(document.getElementById("verify_box").value);
	nocachejucee = Math.random();	
	http.open("get", register_newprocess+"?name="+name+"&email="+email+"&password="+password+"&mobile="+mobile+"&page="+abxs+"&verify_box="+verifybox+"&nocachejucee = "+nocachejucee);
	http.onreadystatechange = insertReplyjucee;
	http.send(null);
}
function insertReplyjucee() {
	if(http.readyState == 4){
		var responsejucee = http.responseText;
		var prfekde = responsejucee.split("~");
		var txfedemsg = prfekde[0];	
		var erreape = prfekde[1];
		if(erreape == 2){
			jQuery(document).ready(function($) {					
				jQuery.facebox(txfedemsg);
			});
		} else {
			document.getElementById("msg_displayd").innerHTML = ''+txfedemsg;
			reloadCaptcha("secimg", verifyimage);
		}
	}
}

var nocachelidsubmit = 0;
function leadsemail_submit(tifinid, tifintype) {
	document.getElementById("msg_displayd").innerHTML = '';
	var replaceWith = "^^";
	var name= encodeURI(document.getElementById("name").value);
	var email= encodeURI(document.getElementById("lememail").value);	
	var mobile= encodeURI(document.getElementById("mobile").value);	
	var message= encodeURI(document.getElementById("message_d").value);
	message = message.replace(/&/gi, replaceWith);
	var subject= encodeURI(document.getElementById("subject").value);
	subject = subject.replace(/&/gi, replaceWith);
	var verifybox= encodeURI(document.getElementById("verify_box").value);
	//alert(name+":"+email+":"+mobile+":"+message+":"+subject+":"+verifybox);
	nocachelidsubmit = Math.random();
	http.open("POST", leadsemailprocess, true);
	http.onreadystatechange = insertReplylidsubmit;
	http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	http.send("&name="+name+"&tifinid="+tifinid+"&tifintype="+tifintype+"&email="+email+"&mobile="+mobile+"&message="+message+"&subject="+subject+"&page="+abxs+"&verify_box="+verifybox+"&nocachelidsubmit="+nocachelidsubmit);
}
function insertReplylidsubmit() {
	if(http.readyState == 4){
		var responselidsubmit = http.responseText;
		var prfeklea = responselidsubmit.split("~");
		var txleamsg = prfeklea[0];	
		var eleaape = prfeklea[1];
		if(eleaape == 2){
			jQuery(document).ready(function($) {					
				jQuery.facebox(txleamsg);
			});
		} else {
			document.getElementById("msg_displayd").innerHTML = ''+txleamsg;
			reloadCaptcha("secimg", verifyimage);
		}
	}
}

var nocachecontcla = 0;
function email_classi_poster(tifinid) {
	document.getElementById("msg_displayd").innerHTML = "<img src='"+tb_pathXLoading+"' border='0' style='padding:5px;'> Please wait...";
	var replaceWith = "^^";
	var name= encodeURI(document.getElementById("name").value);
	var email= encodeURI(document.getElementById("claisemail").value);	
	var mobile= encodeURI(document.getElementById("mobile").value);	
	var message= encodeURI(document.getElementById("message_d").value);
	message = message.replace(/&/gi, replaceWith);
	var verifybox= encodeURI(document.getElementById("verify_box").value);
	nocachecontcla = Math.random();
	http.open("POST", classiposterprocess, true);
	http.onreadystatechange = insertReplycontcla;
	http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	http.send("&name="+name+"&tifinid="+tifinid+"&email="+email+"&mobile="+mobile+"&message="+message+"&page="+abxs+"&verify_box="+verifybox+"&nocachecontcla="+nocachecontcla);
}
function insertReplycontcla() {
	if(http.readyState == 4){
		var responsecontcla = http.responseText;
		var clsprfeklea = responsecontcla.split("~");
		var cltxleamsg = clsprfeklea[0];	
		var cleleaape = clsprfeklea[1];
		if(cleleaape == 2){
			jQuery(document).ready(function($) {					
				jQuery.facebox(cltxleamsg);
			});
		} else {
			document.getElementById("msg_displayd").innerHTML = ''+cltxleamsg;
			reloadCaptcha("secimg", verifyimage);
		}
	}
}


var nocachexpxoxi = 0;
function userenquiryreponse_submit(ni_id, ni_send, ni_rece, params) {
	document.getElementById("msg_displayd").innerHTML = '';
	var replaceWith = "^^";	
	var message= encodeURI(document.getElementById("message_d").value);
	message = message.replace(/&/gi, replaceWith);
	var subject= encodeURI(document.getElementById("subject").value);
	subject = subject.replace(/&/gi, replaceWith);
	var verifybox= encodeURI(document.getElementById("verify_box").value);
	nocachexpxoxi = Math.random();
	http.open("POST", userenquiryreplyprocess, true);
	http.onreadystatechange = insertReplyxpxoxi;
	http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	http.send("&ni_id="+ni_id+"&ni_send="+ni_send+"&ni_rece="+ni_rece+"&params="+params+"&message="+message+"&subject="+subject+"&page="+abxs+"&verify_box="+verifybox+"&nocachexpxoxi="+nocachexpxoxi);
}
function insertReplyxpxoxi() {
	if(http.readyState == 4){
		var responsexpxoxi = http.responseText;
		var prwwwlea = responsexpxoxi.split("~");
		var juytro = prwwwlea[0];	
		var kimmape = prwwwlea[1];
		if(kimmape == 2){
			jQuery(document).ready(function($) {					
				jQuery.facebox(juytro);
			});
		} else {
			document.getElementById("msg_displayd").innerHTML = ''+juytro;
			reloadCaptcha("secimg", verifyimage);
		}
	}
}

/*cat things*/
var nocachecwdsu = 0;
function subcat_query() {	
	var catee = encodeURI(document.getElementById("category").value);
	catee = catee.replace(/&/gi, "^^");
	nocachecwdsu = Math.random();
	http.open('get', subcat_pop_ajax+'?category='+catee+'&page='+abxs+'&nocachecwdsu = '+nocachecwdsu);
	http.onreadystatechange = insertReplycwdsu;
	http.send(null);
}
function insertReplycwdsu() {
	if(http.readyState == 4){
		var responsecwdsu = http.responseText;	
		document.getElementById('subcategory_spanid').innerHTML = ''+responsecwdsu;
		document.getElementById('sub2category_spanid').innerHTML = '<select name="sub2category" id="sub2category" style="width:250px;"><option value="">- select one -</option></select><div class="contentTD">Write your own lower sub category</div><div class="contentTDmg"><input type="text" name="write_lower_sub" maxlength="37" id="write_lower_sub" class="textinput" style="width:240px;"></div>';
	}		
}

var nocachekasdfe = 0;
function subcat2_query() {	
	var subcatee = encodeURI(document.getElementById("subcategory").value);
	subcatee = subcatee.replace(/&/gi, "^^");
	nocachekasdfe = Math.random();
	http.open('get', subcat2_pop_ajax+'?subcategory='+subcatee+'&page='+abxs+'&nocachekasdfe = '+nocachekasdfe);
	http.onreadystatechange = insertReplykasdfe;
	http.send(null);
}
function insertReplykasdfe() {
	if(http.readyState == 4){
		var responsekasdfe = http.responseText;	
		document.getElementById('sub2category_spanid').innerHTML = ''+responsekasdfe;
	}		
}
/*cat things ends*/

var nocachexkai = 0;
function submit_answer(mid) {	
	var topicStartx = encodeURI(document.getElementById("replyText"+mid).value);
	topicStartx = topicStartx.replace(/&/gi, "^^");
	var veryfyNumber = encodeURI(document.getElementById("verify_box_"+mid).value);
	var merginz_v = document.getElementById("merginz").value;
	if(merginz_v == 1){
		var emailpro = encodeURI(document.getElementById("email"+mid).value);
		var digs = encodeURI(document.getElementById("digs"+mid).value);
		var digs = digs.replace(/&/gi, "^^");
	} else {
		var digs = 0;
		var emailpro = 0;
	}
	nocachexkai = Math.random();
	http.open("POST", single_enquiry_ajax, true);
	http.onreadystatechange = insertReplyxkai;
	http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	http.send("&answer_t="+topicStartx+"&postid="+mid+"&email="+emailpro+"&digs="+digs+"&page="+abxs+"&veryk="+veryfyNumber+"&nocachexkai="+nocachexkai);
}
function insertReplyxkai() {
	if(http.readyState == 4){
		var responsexkai = http.responseText;
		var spsplit = responsexkai.split("~");
		var mid_spay = spsplit[0];	
		var post_idal = spsplit[1];
		var sucs_fail = spsplit[2];
		if (mid_spay != "")
		{
			jQuery(document).ready(function($) {					
				jQuery.facebox(mid_spay);
			});
		}
		//alert(sucs_fail);
		if(sucs_fail == "success"){
			hideAnswerForm(post_idal,16,'Write not more than 500 characters.',true);
		}
		if(sucs_fail == "failure"){
			hideAnswerForm(post_idal,16,'Write not more than 500 characters.',false);
			reloadCaptcha("secimg"+post_idal);
		}
	}
}


var nocacheqzxzqw = 0;
function submit_classifieds_enquiry(midd) {	
	var topicStartx = encodeURI(document.getElementById("replyText"+midd).value);
	topicStartx = topicStartx.replace(/&/gi, "^^");
	var veryfyNumber = encodeURI(document.getElementById("verify_box_"+midd).value);
	var merginz_v = document.getElementById("merginz").value;
	if(merginz_v == 1){
		var emailpro = encodeURI(document.getElementById("email"+midd).value);
		var digs = encodeURI(document.getElementById("digs"+midd).value);
		var digs = digs.replace(/&/gi, "^^");
	} else {
		var digs = 0;
		var emailpro = 0;
	}
	nocacheqzxzqw = Math.random();
	http.open("POST", single_classi_enquiry_ajax, true);
	http.onreadystatechange = insertReplyqzxzqw;
	http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	http.send("&answer_t="+topicStartx+"&postid="+midd+"&email="+emailpro+"&digs="+digs+"&page="+abxs+"&veryk="+veryfyNumber+"&nocacheqzxzqw="+nocacheqzxzqw);
}
function insertReplyqzxzqw() {
	if(http.readyState == 4){
		var responseqzxzqw = http.responseText;
		var classispsplit = responseqzxzqw.split("~");
		var class_mid_spay = classispsplit[0];	
		var class_post_idal = classispsplit[1];
		var class_sucs_fail = classispsplit[2];
		if (class_mid_spay != "")
		{
			jQuery(document).ready(function($) {					
				jQuery.facebox(class_mid_spay);
			});
		}
		//alert(sucs_fail);
		if(class_sucs_fail == "success"){
			hideAnswerForm(class_post_idal,16,'Write not more than 500 characters.',true);
		}
		if(class_sucs_fail == "failure"){
			hideAnswerForm(class_post_idal,16,'Write not more than 500 characters.',false);
			reloadCaptcha("secimg"+class_post_idal);
		}
	}
}

var nocachebvzmal = 0;
function submit_leads_enquiry(zidd) {	
	var topicStartx = encodeURI(document.getElementById("replyText"+zidd).value);
	topicStartx = topicStartx.replace(/&/gi, "^^");
	var veryfyNumber = encodeURI(document.getElementById("verify_box_"+zidd).value);
	var merginz_v = document.getElementById("merginz").value;
	if(merginz_v == 1){
		var emailpro = encodeURI(document.getElementById("email"+zidd).value);
		var digs = encodeURI(document.getElementById("digs"+zidd).value);
		var digs = digs.replace(/&/gi, "^^");
	} else {
		var digs = 0;
		var emailpro = 0;
	}
	nocacheebvzmal = Math.random();
	http.open("POST", single_leads_enquiry_ajax, true);
	http.onreadystatechange = insertReplyebvzmal;
	http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	http.send("&answer_t="+topicStartx+"&postid="+zidd+"&email="+emailpro+"&digs="+digs+"&page="+abxs+"&veryk="+veryfyNumber+"&nocacheebvzmal="+nocacheebvzmal);
}
function insertReplyebvzmal() {
	if(http.readyState == 4){
		var responseebvzmal = http.responseText;
		var lidspsplit = responseebvzmal.split("~");
		var lids_mid_spay = lidspsplit[0];	
		var lids_post_idal = lidspsplit[1];
		var lids_sucs_fail = lidspsplit[2];
		if (lids_mid_spay != "")
		{
			jQuery(document).ready(function($) {					
				jQuery.facebox(lids_mid_spay);
			});
		}
		//alert(sucs_fail);
		if(lids_sucs_fail == "success"){
			hideAnswerForm(lids_post_idal,16,'Write not more than 500 characters.',true);
		}
		if(lids_sucs_fail == "failure"){
			hideAnswerForm(lids_post_idal,16,'Write not more than 500 characters.',false);
			reloadCaptcha("secimg"+lids_post_idal);
		}
	}
}

var nocachefoser = 0;
function addtobulk(bulkid){
	document.getElementById("processing_enquiry"+bulkid).innerHTML = "<img src='"+tb_pathXLoading+"' border='0'> Please wait...";
	nocachefoser = Math.random();
	http.open("get", bulk_processing_addition+"?bulkId="+bulkid+"&page="+abxs+"&nocachefoser = "+nocachefoser);
	http.onreadystatechange = insertReplyfoser;
	http.send(null);
}
function insertReplyfoser() {
	if(http.readyState == 4){
		var responsefoser = http.responseText;
		var bulksplit = responsefoser.split("~~");
		var bulkd_msg = bulksplit[0];	
		var bulkd_id = bulksplit[1];
		var refresh_footer = bulksplit[2];
		document.getElementById("processing_enquiry"+bulkd_id).innerHTML = ""+bulkd_msg;		
	}
}

var nocacheleaodps = 0;
function leadsaddbulk(bulkid){
	document.getElementById("leadsbulkenquiryMsg"+bulkid).innerHTML = "<img src='"+tb_pathXLoading+"' border='0'> processing...";
	nocacheleaodps = Math.random();
	http.open("get", Leads_bulk_processing+"?bulkId="+bulkid+"&page="+abxs+"&nocacheleaodps = "+nocacheleaodps);
	http.onreadystatechange = insertReplyleaodps;
	http.send(null);
}
function insertReplyleaodps() {
	if(http.readyState == 4){
		var responseleaodps = http.responseText;
		var leedsbulksplit = responseleaodps.split("~~");
		var bulkdleads_msg = leedsbulksplit[0];	
		var bulkdleads_id = leedsbulksplit[1];
		var refresh_footerd = leedsbulksplit[2];
		document.getElementById("leadsbulkenquiryMsg"+bulkdleads_id).innerHTML = ""+bulkdleads_msg;		
	}
}

var nocacheshgfdk = 0;
function addbulkclassienquiry(bulkid){
	document.getElementById("classibulkenquiry"+bulkid).innerHTML = "<img src='"+tb_pathXLoading+"' border='0'> Please wait...";
	nocacheshgfdk = Math.random();
	http.open("get", classi_bulk_processing_addition+"?bulkId="+bulkid+"&page="+abxs+"&nocacheshgfdk = "+nocacheshgfdk);
	http.onreadystatechange = insertReplyshgfdk;
	http.send(null);
}
function insertReplyshgfdk() {
	if(http.readyState == 4){
		var responseshgfdk = http.responseText;
		var classibulksplit = responseshgfdk.split("~~");
		var clabulkd_msg = classibulksplit[0];	
		var clabulkd_id = classibulksplit[1];
		var clarefresh_footer = classibulksplit[2];
		var clasweb = classibulksplit[3];
		if(clarefresh_footer == 2){
			document.getElementById("classibulkenquiry"+clabulkd_id).innerHTML = ""+clabulkd_msg;	
		} else {
			jQuery(document).ready(function($) {					
				jQuery.facebox(clabulkd_msg);
			});
			document.getElementById("classibulkenquiry"+clabulkd_id).innerHTML = '<img src="http://'+clasweb+'/images/addbulkcart.gif" border="0" onClick="javascript:addbulkclassienquiry(\''+clabulkd_id+'\')" style="cursor:pointer;">';
		}
	}
}

var nocachedlosder = 0;
function delete_enquiry(delid){
	hza = document.getElementById("enquiry_row_delete"+delid); 
	hza.style.display = "none";
	nocachedlosder = Math.random();
	http.open("get", deleteEnquiry+"?idpass="+delid+"&page="+abxs+"&nocachedlosder = "+nocachedlosder);
	http.onreadystatechange = insertReplydlosder;
	http.send(null);
}
function insertReplydlosder() {
	if(http.readyState == 4){
		var responsedlosder = http.responseText;
		var enqsplitw = responsedlosder.split("~~");
		var alertmsw = enqsplitw[0];	
		var alertwid = enqsplitw[1];		
		if(alertmsw){
			var refresh_pageew = confirm(alertmsw+"\n\r------------------\n\rWould you like to refresh this page for changes to take place?");
			if(refresh_pageew){
				window.location.reload();
			}
		}
	}
}

function disableSelection(target){
	if (typeof target.onselectstart!="undefined") //IE route
	{
		target.onselectstart=function(){return false}	
	}
	else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	{
		target.style.MozUserSelect="none"
	}
	else 
	{
		target.onmousedown=function(){return false}
		target.style.cursor = "default"
	}
}
function diableworld()
	{
	disableSelection(document.getElementById("showFrame"))
	if (navigator.appName=="Microsoft Internet Explorer")
	{
		document.onselectstart=new Function('return false');
	}
}

function popwindows(windows) {
	newwindow=window.open(windows,'mywin','height=630,width=610,resize=yes,scrollbars=1');
	var very = newwindow.document;
	very.write('<html><head><title>Print company detail</title>');
	very.write(unescape('%3Cscript type="text/javascript" language="javascript"%3E if (document.all){document.onselectstart = function () { return false; };} document.onmousedown = function () { return false; };%3C/script%3E'));
	very.write('</head><body><div style="width:98%;padding:10px;"><div style="width:100%;text-align:center;" id="newFrameBound"><img src="'+logo+'" /></div>');	
	very.write(document.getElementById('showFrame').innerHTML+'<div style="width:98%;text-align:right;padding:10px;clear:both;"><a href="javascript:void(0)" onclick="window.close()" style="color:#2A2ACC;font-weight:bold;">Click to Close</a></div>');	
	very.write('</div>');
	very.write(unescape('%3Cscript type="text/javascript" language="javascript"%3E window.print();%3C/script%3E')+'</body></html>');
	very.close();
}

var nocacheqpwe = 0;
function show_me_way_to(passme) {	
	if(passme == "states"){
		idthing = "list_of_states";
	}
	if(passme == "city"){
		idthing = "list_of_cities";
	}
	//document.getElementById(idthing).innerHTML = "<div class='loading'></div>";	
	if(passme == "city"){
		var getd_country = encodeURI(document.getElementById("country").value);
		getd_country = getd_country.replace(/&/gi, "^^");
		var getd_state = encodeURI(document.getElementById("states").value);
		getd_state = getd_state.replace(/&/gi, "^^");
		if(getd_state == "others"){
			document.getElementById("other_state_box").innerHTML = '<div>Write your state: <input name="state_other" id="state_other" type="text" maxlength="250" class="textinput" style="width:240px;"></div>';
			document.getElementById("other_location_box").innerHTML = '<div>Write your city: <input name="city_other" id="city_other" type="text" maxlength="250" class="textinput" style="width:240px;"></div>';
			document.getElementById("list_of_cities").innerHTML = "<input type='hidden' id='location_city' value=''>";
		} else {
			nocacheqpwe = Math.random();
			http.open('get', statecity+'?country='+getd_country+'&states='+getd_state+'&page='+abxs+'&nocacheqpwe = '+nocacheqpwe);
			http.onreadystatechange = insertReplyqpwe;
			http.send(null);
		}
	} else if(passme == "states"){
		var getd_country = encodeURI(document.getElementById("country").value);
		getd_country = getd_country.replace(/&/gi, "^^");
		http.open('get', statecity+'?country='+getd_country+'&page='+abxs+'&nocacheqpwe = '+nocacheqpwe);
		http.onreadystatechange = insertReplyqpwe;
		http.send(null);
	} else {
		document.getElementById("other_state_box").innerHTML = '<div>Write your state: <input name="state_other" id="state_other" type="text" maxlength="250" class="textinput" style="width:240px;"></div>';
		document.getElementById("other_location_box").innerHTML = '<div>Write your city: <input name="city_other" id="city_other" type="text" maxlength="250" class="textinput" style="width:240px;"></div>';
		document.getElementById("list_of_states").innerHTML = "<input type='hidden' id='states' value=''>";
		document.getElementById("list_of_cities").innerHTML = "<input type='hidden' id='location_city' value=''>";
	}
}
function insertReplyqpwe() {
	if(http.readyState == 4){
		var responseqpwe = http.responseText;
		var citystatearray = responseqpwe.split("~");
		var list_details = citystatearray[0];	
		var wheretodisplay = citystatearray[1];
		var rowreturn = citystatearray[2];	
		if(wheretodisplay == 1){
			if(rowreturn > 0){
				document.getElementById('list_of_states').innerHTML = ''+list_details;
				document.getElementById("other_state_box").innerHTML = '';
				//document.getElementById("other_location_box").innerHTML = '<select name="location_city" id="location_city" onchange="javascript:other_location();"><option value="">- select one -</option></select>';
			} else {
				document.getElementById("other_state_box").innerHTML = '<div>Write your state: <input name="state_other" id="state_other" type="text" maxlength="250" class="textinput" style="width:240px;"></div>';
				document.getElementById("other_location_box").innerHTML = '<div>Write your city: <input name="city_other" id="city_other" type="text" maxlength="250" class="textinput" style="width:240px;"></div>';
				document.getElementById("list_of_states").innerHTML = "<input type='hidden' id='states' value='others'>";
				document.getElementById("list_of_cities").innerHTML = "<input type='hidden' id='location_city' value='others'>";
			}
		} else if(wheretodisplay == 2){
			if(rowreturn > 0){
				document.getElementById('list_of_cities').innerHTML = ''+list_details;
				document.getElementById("other_state_box").innerHTML = '';
				document.getElementById("other_location_box").innerHTML = '';
			} else {
				document.getElementById("other_location_box").innerHTML = '<div>Write your city: <input name="city_other" id="city_other" type="text" maxlength="250" class="textinput" style="width:240px;"></div>';
				document.getElementById("list_of_states").innerHTML = "";
				document.getElementById("list_of_cities").innerHTML = "<input type='hidden' id='location_city' value='others'>";
			}
		}
	}		
}

var nocachexpxz = 0;
function showmerates(plantype) {
	document.getElementById('plan_amount_display').innerHTML = "<img src='"+tb_pathXLoading+"' border='0'> Please wait...";
	var memtype= encodeURI(document.getElementById("membership_types").value);
	if(plantype == "advertise"){
		if(memtype == "Image"){
			document.getElementById("advertise_me2").disabled =true;
			document.getElementById("advertise_me1").disabled =false;
			document.getElementById("writetext").style.display = "none";
		}
		if(memtype == "Text"){
			document.getElementById("advertise_me1").disabled =true;
			document.getElementById("advertise_me2").disabled =false;
			document.getElementById("browseimage").style.display = "none";
		}
	}
	nocachexpxz = Math.random();
	http.open('get', plan_ajax+'?memtype='+memtype+'&plantype='+plantype+'&nocachexpxz = '+nocachexpxz);
	http.onreadystatechange = insertReplyxpxz;
	http.send(null);
}
function insertReplyxpxz() {
	if(http.readyState == 4){
		var responsexpxz = http.responseText;
		var ewmsplit = responsexpxz.split("^^");
		var ewmsg_display = ewmsplit[0];	
		var ewnewprice = ewmsplit[1];		
		document.getElementById('plan_amount_display').innerHTML = ''+ewmsg_display;
		if(ewnewprice > 0){
			document.getElementById('onselectingplans').style.display = "block";
		} else {
			document.getElementById('onselectingplans').style.display = "none";
		}
	}
}


var nocachebtya = 0;
function processing_order(){	
	document.getElementById('order_receiving').innerHTML = "<img src='"+tb_pathXLoading+"' border='0'> Please wait...";
	var category= encodeURI(document.getElementById("category").value);
	category = category.replace(/&/gi, "^^");
	var btwq = document.getElementsByName("user_option"); 	
	var gonna = "";
	var check_gonn = 1;
	var kites = (btwq.length);
    for (k = 0; k < kites; k++) {
        if (btwq[k].checked) {
			var option_d2 = btwq[k].value;	
			gonna = gonna + option_d2;
			if(check_gonn < kites){
				gonna = gonna + ",";
				check_gonn = eval(parseInt(check_gonn + 1));
			}
		}
    }	
	var company_and= encodeURI(document.getElementById("company").value);
	company_and = company_and.replace(/&/gi, "^^");
	var address_and= encodeURI(document.getElementById("address").value);
	address_and = address_and.replace(/&/gi, "^^");
	var country= encodeURI(document.getElementById("country").value);
	var states= encodeURI(document.getElementById("states").value);
	if(states == "others"){
		var states= encodeURI(document.getElementById("state_other").value);
	}
	var location_city= encodeURI(document.getElementById("location_city").value);
	if(location_city == "others"){
		var location_city= encodeURI(document.getElementById("city_other").value);
	}
	alert(country+":"+states+":"+location_city);
	var pincode= encodeURI(document.getElementById("pincode").value);
	var phone= encodeURI(document.getElementById("phone").value);
	var mobile= encodeURI(document.getElementById("mobile").value);
	var fax= encodeURI(document.getElementById("fax").value);
	var contact_and= encodeURI(document.getElementById("contact").value);
	contact_and = contact_and.replace(/&/gi, "^^");
	var planamount= encodeURI(document.getElementById("plan_amount").value);
	var memstype= encodeURI(document.getElementById("membership_types").value);
	if(planamount > 0){
		var website= encodeURI(document.getElementById("website").value);
		var ros = document.getElementsByName("c_card"); 
		for (i = 0; i < ros.length; i++) {
			if (ros[i].checked) {
				var vasrname = document.getElementById('c_card'+i).value;						
			}
		}
	}
	var keyword_and= encodeURI(document.getElementById("keyword").value);
	keyword_and = keyword_and.replace(/&/gi, "^^");
	var full_name= encodeURI(document.getElementById("full_name").value);
	var email= encodeURI(document.getElementById("email").value);	
	var passwd_and= encodeURI(document.getElementById("passwd").value);	
	passwd_and = passwd_and.replace(/&/gi, "^^");
	var verifybox= encodeURI(document.getElementById("verify_box").value);	
	nocachebtya = Math.random();		
	http.open("POST", url, true);
	http.onreadystatechange = insertReplybtya;
	http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	http.send("&business_type="+gonna+"&category="+category+"&company="+company_and+"&address="+address_and+"&country="+country+"&states="+states+"&location="+location_city+"&pincode="+pincode+"&phone="+phone+"&mobile="+mobile+"&fax="+fax+"&contact="+contact_and+"&plan_amount="+planamount+"&membership_types="+memstype+"&website="+website+"&ordertype="+vasrname+"&keyword="+keyword_and+"&full_name="+full_name+"&user_email="+email+"&passwd="+passwd_and+"&page="+abxs+"&verifybox="+verifybox);	
}
function insertReplybtya() {
	if(http.readyState == 4){	
		var responsebtya = http.responseText;
		var msddplit = responsebtya.split("~~");
		var msg_display = msddplit[0];	
		var new_alert = msddplit[1];
		if(msg_display == 1){
			alert(new_alert);
			document.getElementById('order_receiving').innerHTML = "<button onclick='javascript:processing_order();' style='background:transparent url("+path+"images/confirm_this_order.png);width:160px;height:60px;cursor:pointer'>&nbsp;</button>";
			reloadCaptcha('secimg');
		} else {			
			document.getElementById('order_receiving').innerHTML = ''+new_alert;		
		}
	}	
}
function reloadCaptcha(x5){
	randomkey=Math.floor(Math.random()*1000000);
	if(x5){
		document.getElementById(x5).src=verifyimage+"?"+randomkey;
	}
}


function validation(dweb){
	var falseth = 0;
	var postprocess = 0;
	var postpwprocess = 0;
	var category_and= encodeURI(document.getElementById("category").value);	
	if(category_and == ""){
		document.getElementById('categoryInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please select category.</div>";
		var falseth = 1;
	} else {
		document.getElementById('categoryInnerHTML').innerHTML = "";
		
	}
	var japan_fis = 0;
	if(category_and){
		var subcategory_and= encodeURI(document.getElementById("subcategory").value);
		var write_sub= encodeURI(document.getElementById("write_sub").value);
		if(subcategory_and == ""){
			if(write_sub == ""){
				document.getElementById('subcategoryInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please select subcategory or write your own.</div>";
				var falseth = 1;
			} else {
				document.getElementById('subcategoryInnerHTML').innerHTML = "";
				
			}
		}		
		var sub2category_and= encodeURI(document.getElementById("sub2category").value);
		var write_lower_sub= encodeURI(document.getElementById("write_lower_sub").value);
		if(sub2category_and == ""){
			if(write_lower_sub == ""){
				document.getElementById('sub2categoryInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please select lower subcategory or write your own.</div>";
				var falseth = 1;
			} else {
				document.getElementById('sub2categoryInnerHTML').innerHTML = "";				
			}
		}
		
	}
	var mdsubject= encodeURI(document.getElementById("mdsubject").value);
	if(mdsubject == ""){
		document.getElementById('subjectInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please write a subject / title for your company.</div>";
		var falseth = 1;
	} else {
		document.getElementById('subjectInnerHTML').innerHTML = "";		
	}

	/*var mddescription= encodeURI(document.getElementById("area4").value);
	if(mddescription == ""){
		document.getElementById('descInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Write a description for your company.</div>";
		var falseth = 1;
	} else {
		document.getElementById('descInnerHTML').innerHTML = "";		
	}*/

	var company= encodeURI(document.getElementById("company").value);
	if(company == ""){
		document.getElementById('companyInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please write your company name.</div>";
		var falseth = 1;
	} else {
		document.getElementById('companyInnerHTML').innerHTML = "";
		
	}
	var address= encodeURI(document.getElementById("address").value);
	if(address == ""){
		document.getElementById('addressInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please write your address.</div>";
		var falseth = 1;
	} else {
		document.getElementById('addressInnerHTML').innerHTML = "";
		
	}
	var country= encodeURI(document.getElementById("country").value);
	if(country == ""){
		document.getElementById('countryInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please write your country name.</div>";
		var falseth = 1;
	} else {
		document.getElementById('countryInnerHTML').innerHTML = "";
		
	}
	var states= encodeURI(document.getElementById("states").value);	
	if(states == "others"){
		var states_others= encodeURI(document.getElementById("state_other").value);		
	} else {
		var states_others = "1";
	}
	if(states == "" || states_others == ""){
		document.getElementById('stateInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please write your state name.</div>";
		var falseth = 1;
	} else {
		document.getElementById('stateInnerHTML').innerHTML = "";
		
	}
	var location_city= encodeURI(document.getElementById("location_city").value);
	if(states == "others"){
		var location_city= encodeURI(document.getElementById("city_other").value);	
	} else {
		if(location_city == "others"){
			var location_city= encodeURI(document.getElementById("city_other").value);
		}
	}
	if(location_city == ""){
		document.getElementById('cityInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please write your city name.</div>";
		var falseth = 1;
	} else {
		document.getElementById('cityInnerHTML').innerHTML = "";
		
	}
	
	var phone= encodeURI(document.getElementById("phone").value);
	var mobile= encodeURI(document.getElementById("mobile").value);
	if(mobile == ""){
		document.getElementById('mobileInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please write your mobile number.</div>";
		var falseth = 1;
	} else {
		document.getElementById('mobileInnerHTML').innerHTML = "";
		
	}
	var fax= encodeURI(document.getElementById("fax").value);
	var contact= encodeURI(document.getElementById("contact").value);
	var keywordnum= encodeURI(document.getElementById("keywordnum").value);
	var alert_key = "";
	for(zs = 1; zs <= keywordnum; zs++){
		var Wkeyword= encodeURI(document.getElementById("Wkeyword"+zs).value);
		if(Wkeyword == ""){
			var Ekeyword= encodeURI(document.getElementById("Ekeyword"+zs).value);
			if(Ekeyword == ""){
				alert_key = alert_key + "Select a keyword or write one for field keyword"+zs+".<br>";
			}
		}
	}
	if(alert_key != ""){
		document.getElementById('keyInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>"+alert_key+"</div>";
		var falseth = 1;
	} else {
		document.getElementById('keyInnerHTML').innerHTML = "";
		
	}
	var checktemp= encodeURI(document.getElementById("checktemp").value);
	if(checktemp == 1){
		var full_name= encodeURI(document.getElementById("full_name").value);
		if(full_name == ""){
			document.getElementById('nameInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please write your full name.</div>";
			var falseth = 1;
		} else {
			document.getElementById('nameInnerHTML').innerHTML = "";
			
		}
		var email= encodeURI(document.getElementById("emailpre").value);
		var filter=/^.+@.+\..{2,3}$/;
		if(email == ""){
			document.getElementById('emailInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Please write your email.</div>";
			var falseth = 1;

		} else if(!filter.test(email)){
			document.getElementById('emailInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Valid email is required.</div>";
			var falseth = 1;
		} else {
			var postprocess = 1;
			document.getElementById('emailInnerHTML').innerHTML = "";
			
		}
		var passwd= encodeURI(document.getElementById("passwd").value);
		if(passwd.length < 6){
			document.getElementById('passInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>Password should be of 6 characters at least.</div>";
			var falseth = 1;
		} else {
			var postpwprocess = 1;
			document.getElementById('passInnerHTML').innerHTML = "";
			
		}

		if(postprocess == 1 && postpwprocess == 1){
			var replaceWith = "^^";	
			var email= encodeURI(document.getElementById("emailpre").value);
			var password= encodeURI(document.getElementById("passwd").value);
			password = password.replace(/&/gi, replaceWith);
			nocacheupasu = Math.random();	
			http.open("get", "checkloginprocoess.php?email="+email+"&password="+password+"&godiva=choco&pageto="+dweb+"&nocacheupasu = "+nocacheupasu);
			http.onreadystatechange = insertReplyupasu;
			http.send(null);		
			var commentsk = "Authenticating...";
			document.getElementById('passInnerHTML').innerHTML = "<div style='border:1px solid #98daf5; background:#eff8fc url(http://"+dweb+"/images/loading.gif) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:350px;'>"+commentsk+"</div>";
		}		
	}
	function insertReplyupasu() {
			if(http.readyState == 4){
				var responseupasu = http.responseText;				
				var usetoggle = responseupasu.split("~~");
				var usermsgr = usetoggle[0];	
				var useralert = usetoggle[1];
				if(useralert == 1){				
					document.getElementById('passInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:350px;'>"+usermsgr+"</div>";
					var truethe = 1;
				} else if(useralert == 2){
					document.getElementById('passInnerHTML').innerHTML = "<div style='border:1px solid #98daf5; background:#eff8fc url(images/right.gif) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:350px;'>"+usermsgr+"</div>";
					var truethe = 1;
				} else {
					document.getElementById('passInnerHTML').innerHTML = '';
					if(truethe == 0){
						var truethe = 0;
					}
				}
			}		
		}
	var sumvalue= encodeURI(document.getElementById("subvalue").value);
	var verify_box= encodeURI(document.getElementById("verify_box").value);
	if(sumvalue != verify_box){
		document.getElementById('verifyInnerHTML').innerHTML = "<div style='border:1px solid #fcbca5; background:#fde9e2 url(images/error.png) no-repeat 3px 4px;color:#213136; font:bold 12px arial; padding:5px; padding-left:30px;width:310px;'>You have to verfiy digits.</div>";
		var falseth = 1;
	} else {
		document.getElementById('verifyInnerHTML').innerHTML = "";
		
	}
	if(falseth > 0){
		alert("There are some fields that needs to be filled or chosen. Please see for comments in red.");
		return false;
	} else {
		return true;
	}
}

function searchin(){
	var searchform = document.getElementById("search_form");
	var whatisinmcat = document.getElementById("search_category");	
	var whatisinm = document.getElementById("search_in");
	var whatisinmvalue = whatisinm.value;
	var whatisinmvalue_split = whatisinmvalue.split("~");
	var split_one = whatisinmvalue_split[0];
	var split_two = whatisinmvalue_split[1];
	if(split_one == "companyLeads"){
		nocacheiopemldk = Math.random();
		http.open('get', search_category_fetch+'?categoryT=leads&pagew='+abxs+'&nocacheiopemldk = '+nocacheiopemldk);
		http.onreadystatechange = insertReplyiopemldk;
		http.send(null);
		document.getElementById("SearchOptionsOthers").innerHTML = "<img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>";
		document.getElementById("search_category").innerHTML = "<img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>";
		searchform.action = split_two;
	} else if(split_one == "companyProducts"){	
		nocachevbvbvbhgfj = Math.random();
		http.open('get', search_category_fetch+'?categoryT=Products&pagew='+abxs+'&nocachevbvbvbhgfj = '+nocachevbvbvbhgfj);
		http.onreadystatechange = insertReplyvbvbvbhgfj;
		http.send(null);
		document.getElementById("SearchOptionsOthers").innerHTML = "<img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>";
		document.getElementById("search_category").innerHTML = "<img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>";
		searchform.action = split_two;
	} else if(split_one == "companyCatalog"){
		nocacheggfsre = Math.random();
		http.open('get', search_category_fetch+'?categoryT=Company&pagew='+abxs+'&nocacheggfsre = '+nocacheggfsre);
		http.onreadystatechange = insertReplyggfsre;
		http.send(null);
		document.getElementById("SearchOptionsOthers").innerHTML = "<img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>";
		document.getElementById("search_category").innerHTML = "<img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>";
		searchform.action = split_two;
	} else if(split_one == "companyClassifieds"){
		nocachepmklq = Math.random();
		http.open('get', search_category_fetch+'?categoryT=Classifieds&pagew='+abxs+'&nocachepmklq = '+nocachepmklq);
		http.onreadystatechange = insertReplypmklq;
		http.send(null);
		document.getElementById("SearchOptionsOthers").innerHTML = "<img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>";
		document.getElementById("search_category").innerHTML = "<img src='"+tb_pathXLoading+"' border='0' style='padding:1px;'>";
		searchform.action = split_two;
	}
	whatisinmcat.disabled = false;
}
function insertReplyiopemldk(){
	if(http.readyState == 4){
		var responseiopemldk = http.responseText;
		var zemdkk1 = responseiopemldk.split("~~");
		var header_cat_sel = zemdkk1[0];	
		var header_cat_other = zemdkk1[1];
		if(header_cat_sel){
			$("#search_category").append(header_cat_sel);
			//document.getElementById("search_category").innerHTML = ""+header_cat_sel;
		}
		$("#SearchOptionsOthers").append(header_cat_other);
		//document.getElementById("SearchOptionsOthers").innerHTML = header_cat_other;
	}			
}	
function insertReplyvbvbvbhgfj(){
	if(http.readyState == 4){
		var responsevbvbvbhgfj = http.responseText;
		var zemdkk2 = responsevbvbvbhgfj.split("~~");
		var header_cat_sel = zemdkk2[0];	
		var header_cat_other = zemdkk2[1];
		if(header_cat_sel){
			$("#search_category").append(header_cat_sel);
			//document.getElementById("search_category").innerHTML = ""+header_cat_sel;
		}
		$("#SearchOptionsOthers").append(header_cat_other);
		//document.getElementById("SearchOptionsOthers").innerHTML = ""+header_cat_other;
	}			
}	
function insertReplyggfsre(){
	if(http.readyState == 4){
		var responseggfsre = http.responseText;
		var zemdkk3 = responseggfsre.split("~~");
		var header_cat_sel = zemdkk3[0];	
		var header_cat_other = zemdkk3[1];
		if(header_cat_sel){
			$("#search_category").append(header_cat_sel);
			//document.getElementById("search_category").innerHTML = ""+header_cat_sel;
		}
		//document.getElementById("SearchOptionsOthers").innerHTML = ""+header_cat_other;
		$("#SearchOptionsOthers").append(header_cat_other);
	}			
}	
function insertReplypmklq(){
	if(http.readyState == 4){
		var responsepmklq = http.responseText;
		var zemdkk = responsepmklq.split("~~");
		var header_cat_sel = zemdkk[0];	
		var header_cat_other = zemdkk[1];
		if(header_cat_sel){
			$("#search_category").append(header_cat_sel);
			//document.getElementById("search_category").innerHTML = ""+header_cat_sel;
		}
		$("#SearchOptionsOthers").append(header_cat_other);
		//document.getElementById("SearchOptionsOthers").innerHTML = ""+header_cat_other;
	}			
}

var nocachelulu = 0;
function comment_like(like_dislike, commentID, zType) {
	var SurmynewvarX=$("#nRfe"+commentID).offset().left;
	var SurmynewvarY=$("#nRfe"+commentID).offset().top;
	$('#nRfe'+commentID).css({ opacity: 0.6 });
	nocachelulu = Math.random();
	http.open('get', toolsPath+'?likedislike='+like_dislike+'&cId='+commentID+'&zType='+zType+'&nocachelulu = '+nocachelulu);
	http.onreadystatechange = insertReplylulu;
	http.send(null);
}
function insertReplylulu() {
	if(http.readyState == 4){		
		var responselulu = http.responseText;
		var cmsplit = responselulu.split("~");
		var suce_on = cmsplit[0];
		var msg_on = cmsplit[1];	
		var counter_value = cmsplit[2];		
		var inner_display = cmsplit[3];		
		var likeordislike = cmsplit[4];
		$('#nRfe'+inner_display).css({ opacity: 1 });		
		if(suce_on == 1){
			jQuery(document).ready(function($){
				jQuery.facebox(msg_on);
			});
		}				
		if (likeordislike == "like"){
			document.getElementById("likeme_"+inner_display).innerHTML = ''+counter_value;
		}
		if (likeordislike == "dislike"){
			document.getElementById("dislikeme_"+inner_display).innerHTML = ''+counter_value;
		}
	}		
}

var nocachejudjus = 0;
function print_details(printID, zType, Murl) {
	var SurmynewvarX=$("#PrintaD"+printID).offset().left;
	var SurmynewvarY=$("#PrintaD"+printID).offset().top;
	$('#PrintaD'+printID).css({ opacity: 0.6 });
	nocachejudjus = Math.random();
	http.open("get", GetPrintDetail+"?printID="+printID+"&zType="+zType+"&mrul="+Murl+"&nocachejudjus = "+nocachejudjus);
	http.onreadystatechange = insertReplyjudjus;
	http.send(null);
}
function insertReplyjudjus() {
	if(http.readyState == 4){		
		var responsejudjus = http.responseText;
		var ddplit = responsejudjus.split("~~");
		var PrintMSg = ddplit[0];
		var mdks = ddplit[1];
		var windows = ddplit[2];
		$('#PrintaD'+mdks).css({ opacity: 1 });
		xnewwindow=window.open(windows,'printwin','height=630,width=680,resize=yes,scrollbars=1');
		var veryc = xnewwindow.document;
		veryc.write(PrintMSg);
		veryc.write('<div style="width:98%;text-align:right;padding:10px;clear:both;"><a href="javascript:void(0)" onclick="window.close()" style="color:#2A2ACC;font-weight:bold;">Click to Close</a></div>');
		veryc.write(unescape('%3Cscript type="text/javascript" language="javascript"%3E window.print();%3C/script%3E'));
	}
}
