	function resizeContent(){
		var mnHgt=$("#content_left").height();
	    var rgthgt=$("#content_rgt").height();
		mnHgt=(mnHgt<rgthgt)?rgthgt:mnHgt;
		$(".maincontent").height(mnHgt);
	}
	function loadAjaxResponce(req, loadId, ipL){		
		loading(loadId);
		$.ajax({
			type: 'POST',
			url: 'livebiznet_ajax_handler.php',
			data:{'query4':req, 'interParam':ipL},
			success: function(resp){
				$("#"+loadId).html(resp);
				resizeContent();
			},
			error: function(){
				
			}
		});
		var currD=document.getElementById('hidCurrdt').value;
		var prevW=document.getElementById('hidPrevW').value;
		var prevW=document.getElementById('hidPrevW').value;
		if(req == "companies"){
			$(".sub_tab").css("font-weight","normal");
			$(".companies_sub_tab").css("font-weight","bold");
            $("#Prof_ViewAll").attr("href","/business-search/1.php");
			$('#spnviewall').html("<a href='/business-search/1.php'>View all</a>");			
		}else if(req == "professionals"){
			$(".sub_tab").css("font-weight","normal");
            $(".professional_sub_tab").css("font-weight","bold");
			$("#Prof_ViewAll").attr("href","/professional-search/1.php");	
			$('#spnviewall').html("<a href='/professional-search/1.php'>View all</a>");			
		}else if(req == "jobs"){
			$(".sub_tab").css("font-weight","normal");
            $(".jobs_sub_tab").css("font-weight","bold");
            $("#Prof_ViewAll").attr("href","/jobs-search/1.php");	
			$('#spnviewall').html("<a href='/jobs-search/1.php'>View all</a>");			
		}else if(req == "opportunities"){
			$(".sub_tab").css("font-weight","normal");
            $(".opportunities_sub_tab").css("font-weight","bold");
            $("#Prof_ViewAll").attr("href","/opportunities-search/1.php");	
			$('#spnviewall').html("<a href='/opportunities-search/1.php'>View all</a>");			
		}else if(req.indexOf("categories") !=-1){
            $(".categories_sub_tab").css("font-weight","bold");
			$(".city_sub_tab").css("font-weight","normal");
			var lt='c';
			if(req.indexOf("prof")!=-1){
				lt='p';
			}
			$("#brws_vewall").attr("href","./inside/all_categories.php?lt="+lt);
		}else if(req.indexOf("cities") !=-1){
            $(".city_sub_tab").css("font-weight","bold");
			$(".categories_sub_tab").css("font-weight","normal");
			var lt='c';
			if(req.indexOf("prof")!=-1){
				lt='p';
			}
            $("#brws_vewall").attr("href","./inside/all_categories.php?i4=ct&lt="+lt);
		}
	}
	function loading(elemntId)
	{
		$("#"+elemntId).html('<img style="margin-top:60px;" src="http://images2.wapr.com/images/loading-big.gif" width="32" height="32" border="0" alt="Loading..."/>'); 
	}
	function searchInputText(e, me)
	{
		var ind = document.getElementById('type').selectedIndex;
		var txt = "";
		if(ind == 0)
			txt = 'Company Name';
		else if(ind == 1)
			txt = 'Type a Name';
		else if(ind == 2)
			txt = 'Job Title';
		else if(ind == 3)
			txt = 'Opportunity Title';
		else if(ind == 4)
			txt = 'Product Name';
		if (e!=""){
		if (me.value=='') { /*me.style.color="#5e7980";*/ me.value=txt; return false; }
		} else
		if (me.value==txt) { me.value=''; /*me.style.color="#000000";*/}
	}
	function changeInputText(elem)
	{
		if( document.getElementById("key").value=="Company Name" || 
			document.getElementById("key").value=="Type a Name" || 
			document.getElementById("key").value=="Job Title" || 
			document.getElementById("key").value=="Opportunity Title" ||
			document.getElementById("key").value=="Product Name") {
			if(elem.value=="company") {
				document.getElementById("key").value="Company Name";
			} else if(elem.value=="professional") {
				document.getElementById("key").value="Type a Name";
			} else if(elem.value=="job") {
				document.getElementById("key").value="Job Title";
			} else if(elem.value=="opp") {
				document.getElementById("key").value="Opportunity Title";
			} else {
				document.getElementById("key").value="Product Name";	
			}
			document.getElementById("key").style.color = "#5e7980";
		}		
		if(elem.value == "professional")
			document.getElementById("who_seeking_for_job").style.display = "block";
		else
			document.getElementById("who_seeking_for_job").style.display = "none";
	}
	function cntrlChnge(fldObj, ind, lnktxt){
		var newPgNo=0;
		var newPgSz=0;
		var ltyp=$("#ltyp").val();
		var reqSend=false;
		var ttlPgs=parseInt($("#pgsGet").text());
		if(ind==0){
			newPgSz=$("#cboPazeSize_top").val();
			newPgNo=$("#txtPageNo_top").val();
			newPgNo=parseInt(newPgNo);
			if(lnktxt=='next'){
				newPgNo+=1;
				if(newPgNo<=ttlPgs){
					reqSend=true;
				}
			}
			else if(lnktxt=='prev'){
				newPgNo-=1;
				if(newPgNo>0){
					reqSend=true;
				}
			}
		}
		else if(ind==1){
			newPgNo=parseInt($(fldObj).val());
			if(newPgNo<=ttlPgs){
				newPgSz=$("#cboPazeSize_top").val();
				reqSend=true;
			}
		}else{
			newPgNo=1;
			newPgSz=$(fldObj).val();
			reqSend=true;
		}
		if(reqSend){
			$(".txtPageNos").val(newPgNo);
			$(".frmComboBox").val(newPgSz);
			paginationReq(newPgNo, newPgSz, ltyp);
		}
		
	}
	function paginationReq(pageNo, dispCnt, listingTyp){
		$.ajax({
			type: 'POST',
			url: '../livebiznet_ajax_handler.php',
			dataType: 'json',
			data:{'pgNo':pageNo, 'dispCnt':dispCnt, 'query4':'featuredCont', 'interParam':listingTyp},
			success: function(resp){
				buildFeaturedCont(resp);
			},
			error: function(){
				
			}
		});
	}
	
	function buildFeaturedCont(jsonObj){
		$(".pg4m").text(jsonObj.from);
		$(".pgup2").text(jsonObj.to);
		$(".ttlpgs").text(jsonObj.pgs);
		buildFeaturdItem("#main_cont #column1", jsonObj.col0);
		buildFeaturdItem("#main_cont #column2", jsonObj.col1);
		buildFeaturdItem("#main_cont #column3", jsonObj.col2);
	}
	function buildFeaturdItem(columnId, items){
		$(columnId).empty();
		var len=items.length;
		var htmlStr='';
		for(var i=0; i<len; i++){
			if(htmlStr!=''){
				htmlStr+='<div class="clr"></div>';
			}
			htmlStr+='<div class="feturItm"><div class="cont_tp_lft"><div class="cont_tp_rgt"><div class="cont_tp_mdl"><img src="../images/spacer.gif"/></div></div></div>';
			htmlStr+='<div class="feturCont"><div class="feturInf"><div class="itmlogo"><a href="'+items[i].plink+'" target="_blank" ><img src="'+items[i].logopath+'" alt="'+items[i].dispNm+'" width="50" height="50" border="0" /></a></div><div class="itminfo"><h1><a href="'+items[i].plink+'" target="_blank" class="title">'+items[i].dispNm+'</a></h1><span class="featurdloctn">'+items[i].addrs+'</span></div></div><div class="clr"></div><div class="feturDscr">'+items[i].dscr+'</div><span class="expDtm">Last updated on: <b>'+items[i].dtm+'</b></span></div>';
			htmlStr+='<div class="cont_nd_lft"><div class="cont_nd_rgt"><div class="cont_nd_mdl"><img src="../images/spacer.gif"/></div></div></div></div>';
		}
		$(columnId).append(htmlStr);
	
	}