
function displayBlockForRecommendations()
{
    
	var url="/webapp/recommendations/fetchMyReco.sp"
	var obj = new Object;
	obj.recoLimit = 10;

	fetchPersonalReco(url, obj);
	
}

//this variable stores the response at global level
var personalResponse;
var defPersonalDisp = 3;
var expPersonalDisp = 10;

//this function fires the ajax message
//stores response in a global var
//invokes display of recommendations bar
function fetchPersonalReco(url, obj)
{  //  alert("reaching uptil here  "+obj.assetType);

	jQuery('#site-top-bar').css('width','830px');
	jQuery('#site-top-bar').css('left','150px');
	jQuery('#site-top-bar').css('top','110px');
	var header=document.getElementById('scrollHeaderdisplay');
	header.style.visibility="visible";
    var innerHTMLstr = "";  
	innerHTMLstr +='<a class="reco_forU">My Recommendations</a>';
	innerHTMLstr +='<a  id="min_message1" href="#" ><img OnClick="hideRecommendations();" style=" border : none;" src="/shared/images/blockViewerClose.gif"></a> ';
	innerHTMLstr +='<a class="personal_whats_this" href="javascript:openwindowreco();">What\'s This?</a> ';
	header.innerHTML=innerHTMLstr;
	
	var recocontent=document.getElementById('personal_recoContent');
	recocontent.style.visibility="visible";
	
	jQuery.post(url, obj, function(response){
         
		if(response != null && response.flag == 'success' &&response.facetCount>0){
	//	alert("sucess");
			personalResponse = response;
			displayPersonalRecommendations(response,obj);
		}
		else if(response != null && response.flag == 'success' &&response.facetCount<=0){
			openDefaultWindow("norecommendation");
		}
		else{
			
			//jQuery('#site-top-bar').remove();
			//alert('Error loading recommendation bar');
		//	var url="/webapp/recommendations/recommendationDefault.jsp";
		//	dhtmlwindow.open('historyajaxbox',url,"No History", 'width=500px,height=170px,left=250px,top=110px');
			openDefaultWindow("nohistory");
		}
	});
}

//this function creates the header display
//invokes display of scroller bar
function displayPersonalRecommendations(response,obj){

	
//	jQuery('#site-top-bar').attr('class','site_top_bar_nn');
	
	
	

	var facetCount = response.facetCount;

	renderPersonalRecommendationList(response,facetCount, defPersonalDisp,obj);
	
}


//this function iterates over response and calls a method to render recommendation scroller
function renderPersonalRecommendationList(response,facetCount, maxResultLength,obj){
    
	
	var browsable=document.getElementById('browsabledisplay');
	if(navigator.appName=="Microsoft Internet Explorer"){
	jQuery('#browsabledisplay').css('height','157px');
	jQuery('#browsabledisplay div').css('height','157px');
	}
	else{
	jQuery('#browsabledisplay').css('height','150px');
	jQuery('#browsabledisplay div').css('height','120px');
	}

	var innerHTMLstr = "";
	var i=0;
	
	innerHTMLstr +='<div  id="personal_items" class="items" >';

	if(response.products.length > 0)++i;
	innerHTMLstr += renderPersonalFacetList(response.products, 'Products',i,facetCount, maxResultLength,'productImage');
	

	if(response.documents.length > 0)++i;
	innerHTMLstr += renderPersonalFacetList(response.documents, 'Documentation',i, facetCount, maxResultLength,'documentationImage');
    
	if(response.tools.length > 0)++i;
	innerHTMLstr += renderPersonalFacetList(response.tools, 'Software and Tools',i, facetCount, maxResultLength,'toolImage');
	
	if(response.applications.length > 0)++i;
	innerHTMLstr += renderPersonalFacetList(response.applications, 'Applications',i, facetCount, maxResultLength,'applicationImage');
	
	if(response.referenceDesigns.length > 0)++i;
	innerHTMLstr += renderPersonalFacetList(response.referenceDesigns, 'Reference Designs',i, facetCount, maxResultLength,'designImage');
	
	if(response.trainings.length > 0)++i;
	innerHTMLstr += renderPersonalFacetList(response.trainings, 'Training',i, facetCount, maxResultLength,'trainingImage');
	
  
	if(response.videos.length > 0)++i;
	innerHTMLstr += renderPersonalFacetList(response.videos, 'Videos',i, facetCount, maxResultLength,'videoImage');
	
    
	innerHTMLstr +='</div >';
	

	innerHTMLstr +='<br clear="all">';
	//remove the spinner image displayed while loading
	jQuery('#personal_recoContent').removeClass('loading');


	jQuery("#browsabledisplay").fadeIn();
	

	browsable.innerHTML=innerHTMLstr;
	browsable.style.visibility="visible";

	
	var footer=document.getElementById('scrollFooterdisplay');
	footer.style.visibility="visible";
	jQuery("#scrollFooterdisplay").fadeIn();
	//jQuery('#scrollFooterdisplay').css('background-color','#BDCDDA');
	//jQuery('#scrollFooterdisplay div').css('background-color','#BDCDDA');

     innerHTMLstr = "";  
	 if(maxResultLength == 3)
	 {
	
	 innerHTMLstr ='<a class="show_more" id="MLControls'+facetCount+'"  " href="#"><u><span OnClick="javascript:seeMore1();">More </span></u></a>';
	 }
	 if(maxResultLength == 10)
	 {
	 innerHTMLstr ='<a class="show_less" id="MLControls'+facetCount+'"  " href="#"><u><span OnClick="javascript:seeLess1();">Hide</span></u></a>';
	 }
	//innerHTMLstr +='<div><a id="MLControls'+facetCount+'" style="color : #FFFFFF ;float: left; width: 500px; margin-left: 10px;" " href="#" ><span OnClick="javascript:seeMore1();">Show More</span></a> </div>';
			
	 footer.innerHTML=innerHTMLstr;

}


//this function renders the recommendation list items
/*params : 1) arrList = contains recommendation item per facet
			2)title = title to be displayed for each facet
			3)count = current index count of the facet getting rendered
			4)facetCount = total facet count
			5)maxResultLength = maximum number of items to be displayed in current view
*/
function renderPersonalFacetList(arrList, title, count, facetCount, maxResultLength,divImage){
	var innerHTMLstr = "";
	var forwardShow = "";

	if(arrList.length == 0)
		return innerHTMLstr;

	//logic to display backward arrow
	if((count % 4 == 1) && (count > 4)){
		innerHTMLstr +='<div class="personal_back_arrow" >';
			innerHTMLstr +='<div id="personal_leftArrow" > <a OnClick="javascript:leftClicked1();" class="prevPage browsep left"></a></div>';
	   innerHTMLstr +='</div>';
	}

	//logic to display forward arrow
	if((count % 4 == 0) && (count != facetCount)){
		innerHTMLstr +='<div class="personal_frwd_arrow">';
		innerHTMLstr +='<div id="personal_rightArrow"> <a OnClick="javascript:rightClicked1();" class="nextPage browsep right"><img OnClick="javascript:rightClicked1();" style="width:20px;height:37px;float:left;margin:0px;cursor:pointer;" src=/recommendation/images/Grey_ArrowsRight_18x37px.jpg></a></div>';
		forwardShow = "true";

	}
	
    else {	
	   innerHTMLstr +='<div  class="personal_frwd_arrow1">';	   
	}
	
		    innerHTMLstr +='<ul>';
			innerHTMLstr+='<img src=/recommendation/images/'+divImage+'.jpg  style="height:40px;width:40px;margin:4px 15px -2px 0px;"/>';
		    innerHTMLstr +='<li class="facet_title"><br>'+ title +'</li> </ul>';
			//alert(title + ' -- '+ arrList.length);
			
			innerHTMLstr+='<hr class="partitions"/><br>';
			innerHTMLstr +='<ul>';
		   for(var i=0; i < arrList.length && i < maxResultLength; i++ ){
		   var assetUrl=arrList[i].url;
		   if((arrList[i].url).indexOf("?")<0)
		   {
			 assetUrl=arrList[i].url+"?fr=p";
	       }
		   else
		   {
			assetUrl=arrList[i].url+"&fr=p";
		   }
				if(forwardShow != "true")
				{
				 if(title=="Videos") 
			           {
					   	 innerHTMLstr +='<li><a  href="#" title="'+arrList[i].name+'"  onClick="javascript:playVideo(\''+assetUrl+'\',\''+arrList[i].name+'\',425,250);" >'+trimDisplayText1(arrList[i].name,25)+'</a></li>';;
 
			           }    
					   else
			           {
				     	innerHTMLstr +='<li><a  href="'+ assetUrl +'" title="'+arrList[i].name+'">'+trimDisplayText1(arrList[i].name,23)+'</a></li>';
					   }
				}
					
			   else
			   {
			   if(title=="Videos")
			              {
					      innerHTMLstr +='<li><a  href="#" title="'+arrList[i].name+'"  onClick="javascript:playVideo(\''+assetUrl+'\',\''+arrList[i].name+'\',425,250))" >'+trimDisplayText1(arrList[i].name,22)+'</a></li>';

			              }    
					      else
			              {
				         innerHTMLstr +='<li><a  href="'+ assetUrl +'" title="'+arrList[i].name+'">'+trimDisplayText1(arrList[i].name,23)+'</a></li>';
			       	   }
				}
			}




				innerHTMLstr += '<li><br>';
				innerHTMLstr +='<a  id="Fix'+count+'"  " href="#" ><span OnClick="javascript:hideRecommendations();javascript:fixthis(\''+title+'\');"><u>Fix this</u></span></a> ';
				innerHTMLstr += '</li>';


			innerHTMLstr +='</ul>'

	   innerHTMLstr +='</div>';
	  

	return innerHTMLstr;
}

//handler for right scroll arrow
function rightClicked1() { 
	jQuery('#browsabledisplay').scrollTo(2000,500,{axis:'x'});
	jQuery('#personal_rightArrow').css('display','none');
	jQuery('#personal_leftArrow').css('display','block');
} 

//handler for left scroll arrow
function leftClicked1() { 
	jQuery('#browsabledisplay').scrollTo(0,500,{axis:'x'});
	jQuery('#personal_rightArrow').css('display','block');
	jQuery('#personal_leftArrow').css('display','none');
}





//handler for viewing all the recommendation items
function seeMore1() { 
	
	//use global response, facetCount and maxResultLength(as per requirement)
	renderPersonalRecommendationList(personalResponse,personalResponse.facetCount, expPersonalDisp);

	jQuery('#site-top-bar').css('bottom','355px');
	if(navigator.appName=="Microsoft Internet Explorer"){
	jQuery('#browsabledisplay').css('height','270px');
	jQuery('#browsabledisplay div').css('height','270px');
	}
	else{
	jQuery('#browsabledisplay').css('height','250px');
	jQuery('#browsabledisplay div').css('height','250px');
	}
	jQuery('#personal_rightArrow').css('margin-top','25px');
	jQuery('#personal_leftArrow').css('margin-top','25px');
	
}


function seeLess1(){
	//use global response, facetCount and maxResultLength(as per requirement)
	renderPersonalRecommendationList(personalResponse,personalResponse.facetCount, defPersonalDisp);

	jQuery('#site-top-bar').css('bottom','455px');
	jQuery('#browsablerightArrow').css('height','90px');
	if(navigator.appName=="Microsoft Internet Explorer"){
	jQuery('#browsabledisplay').css('height','157px');
	jQuery('#browsabledisplay div').css('height','157px');
	}
	else{
	jQuery('#browsabledisplay').css('height','150px');
	jQuery('#browsabledisplay div').css('height','150px');
	}
}


//trim large text strings for display
function trimDisplayText1(text, length){
	if(text.length > length)
	{
		text = text.substring(0,length)
		text +="...";
	}
	
	
	return text;
}
function trimDisplayText(text,length){
	if(text.length > length) 
	{
		text = text.substring(0,length)
		text +="...";
	}
	
	//alert(text);
	return text;
}

  
  
function hideRecommendations() { 
	var inputs = document.getElementById("site-top-bar");

	if(inputs.style.display =='inline'){
		inputs.style.display = 'none';
	}else {
		inputs.style.display= 'inline';
	}
	jQuery('#browsabledisplay').scrollTo(0);
	jQuery('#site-top-bar').css('bottom','455px');
	jQuery('#browsablerightArrow').css('height','90px');
	if(navigator.appName=="Microsoft Internet Explorer"){
	jQuery('#browsabledisplay').css('height','157px');
	jQuery('#browsabledisplay div').css('height','157px');
	}
	else{
	jQuery('#browsabledisplay').css('height','150px');
	jQuery('#browsabledisplay div').css('height','150px');
	}
	jQuery('#site-top-bar').css('left','150px');
	jQuery('#site-top-bar').css('top','110px');
}
//Added by b30255 start
//mouse down on dragged DIV element   
function startdrag(t, e) {   
    if (e.preventDefault) e.preventDefault(); //line for IE compatibility   
    e.cancelBubble = true;   
    window.document.onmousemoveOld = window.document.onmousemove;   
    window.document.onmouseupOld = window.document.onmouseup;   
    window.document.onmousemove=dodrag;   
    window.document.onmouseup=stopdrag;   
    window.document.draged = t;   
    t.dragX = e.clientX;   
    t.dragY = e.clientY;   
    return false;   
}   
//move the DIV   
function dodrag(e) {   
       
    if (!e) e = event; //line for IE compatibility   
    t = window.document.draged;   
    t.style.left = (t.offsetLeft + e.clientX - t.dragX)+"px";   
    t.style.top = (t.offsetTop + e.clientY - t.dragY)+"px";   
    t.dragX = e.clientX;   
    t.dragY = e.clientY;   
    return false;   
}   
//restore event-handlers   
function stopdrag() {   
   window.document.onmousemove=window.document.onmousemoveOld;   
   window.document.onmouseup=window.document.onmouseupOld;   
   }   
	
//Added by b30255 end		
	
	

	
function fixthis(title){

	var arrList;

	if(title == 'Products')
		arrList = personalResponse.products;
	else if(title == 'Documentation')
		arrList = personalResponse.documents;
	else if(title == 'Software and Tools')
		arrList = personalResponse.tools;
	else if(title == 'Applications')
		arrList = personalResponse.applications;
	else if(title == 'Reference Designs')
		arrList = personalResponse.referenceDesigns;
	else if(title == 'Training')
		arrList = personalResponse.trainings;
	else if(title == 'Videos')
		arrList = personalResponse.videos;


	//When you click on a link with class of poplight and the href starts with a # 
		var popID ='fixThisPopup'; //Get Popup Name

		//Fade in the Popup and add close button
		jQuery('#fixThisPopup').fadeIn().css({ 'width': Number( 350 ) });
		
		//Define margin for center alignment (vertical + horizontal) - we add 80 to the height/width to accomodate for the padding + border width defined in the css
		var popMargTop = (jQuery('#' + popID).height() + 80) / 2;
		var popMargLeft = (jQuery('#' + popID).width() + 80) / 2;
		

		var header=document.getElementById('fixThisPopup');
		header.style.visibility="visible";
		var innerHTMLstr = "";
		innerHTMLstr+='<div class="draggable_div_fixthis"  onmousedown="startdrag(this, event);" >';
		innerHTMLstr +='<div class="drag-handle" >';
		innerHTMLstr +='<a class="fix_this">'+title+' : Fix This</a>';
		innerHTMLstr +='<a  href="#" style="float: right;"><img OnClick="closePopup();" style=" border : none;" src="/shared/images/blockViewerClose.gif"></a> ';
		innerHTMLstr +='<img style="float: right;margin-right: 10px;" src="/shared/images/blockViewerDevider.gif">'; 
		innerHTMLstr +='</div>';
		innerHTMLstr +='<div >';
		innerHTMLstr +='<table id="fix_this_table" colspan = "2" align="center" frame="below"  rules="rows"  cellspacing="0px" cellpadding="3px" >';
		   for(var i=0; i < arrList.length && i < 10 ;i++){

					innerHTMLstr +='<tr >';
					
					if(title=='Videos')
					{
					innerHTMLstr +='<td><a href="#" title="'+arrList[i].name+'"  onClick="javascript:playVideo(\''+arrList[i].url+'\',\''+arrList[i].name+'\',425,250);">'+trimDisplayText(arrList[i].name,60)+'</a></li></td>';

					}
					else
					{
					innerHTMLstr +='<td><a href="'+ arrList[i].url +'" title="'+arrList[i].name+'">'+trimDisplayText(arrList[i].name,60)+'</a></li></td>';
					}
					innerHTMLstr +='<td><a id="popFix'+i+'"  " href="#" ><span OnClick="javascript:recoSettings(\''+arrList[i].assetId+'\',\''+arrList[i].assetType+'\',\''+arrList[i].code+'\',\''+arrList[i].name+'\',\''+arrList[i].url+'\',\'true\',\''+title+'\',\''+i+'\');">Fix this</span></a> </td>';
					innerHTMLstr +='</tr>';
		   }
		       
		innerHTMLstr +='</table>'
		innerHTMLstr +='</div>';
		innerHTMLstr +='</div>';
		header.innerHTML=innerHTMLstr;
		

		return false;
	
}

function closePopup() {
	var header=document.getElementById('fixThisPopup');
	header.style.display = 'none';

}

function closeSettingsPopup() {
	var header=document.getElementById('recoSettingspopup');
	header.style.display = 'none';

}
	
function openwindowreco() {
	var url="/webapp/recommendations/whatsmoredetails.jsp?pageGeneral=personal";
	reco_window=dhtmlwindow.open('historyajaxbox',url,"Personal Recommendations ",  'width=500px,height=200px,left=472px,top=110px,resize=1,scrolling=1 ,style="color : #FFFFFF ;float: left; width: 250px; margin-left: 10px;"<b style="color : #FFFFFF ;float: left; width: 250px; margin-left: 10px;"> </b><a  id=min_message href="#" style="float: right; width: 20px;></a> <a style= color : #FFFFFF ;float: right; width: 75px; margin-right: 10px; href="#">What\'s This?</a> <div >');
}
	/*	var obj=new Object;
	jQuery.post(url,obj, function(response){
		
		var whtsThis ='personal_whtsThisPopup'; 	
		jQuery('#' + whtsThis).fadeIn().css({ 'width': Number( 300 ) });		
		var header=document.getElementById('personal_whtsThisPopup');
		header.style.visibility="visible";
		var innerHTMLstr = "";
		
		innerHTMLstr+='<div  class="draggable_div_whtsthis" onmousedown="startdrag(this, event);" >';
		innerHTMLstr+='<div class="scrollbardiv">';
		innerHTMLstr +='<div class="drag-handle" >';
		innerHTMLstr +='<a class="reco_settings">Personal Recommendations</a>';
		innerHTMLstr +='<a  href="#" style="float: right;"><img onClick="closewhtsthispopup()" style=" border : none;" src="/shared/images/blockViewerClose.gif"></a> ';
		innerHTMLstr +='<img style="float: right;margin-right: 10px;" src="/shared/images/blockViewerDevider.gif">';
		innerHTMLstr +='</div>';
		innerHTMLstr +='<div >';
		innerHTMLstr +=response;
		innerHTMLstr +='</div>';
		innerHTMLstr +='</div>';
		header.innerHTML=innerHTMLstr;
	});
  }
  function closewhtsthispopup() {

	var header=document.getElementById('personal_whtsThisPopup');
	header.style.display = 'none';

}  */


function recoSettings(assetId,assetType,code,name,linkurl,isCollateral,title,index){

	closePopup();
	var head=document.getElementById('reco_setting');
	jQuery('#reco_setting').attr('class','loading');
	head.style.visibility="visible";
	
	var arrList;
	if(title == 'Products')
		arrList = personalResponse.products;
	else if(title == 'Documentation')
		arrList = personalResponse.documents;
	else if(title == 'Software and Tools')
		arrList = personalResponse.tools;
	else if(title == 'Applications')
		arrList = personalResponse.applications;
	else if(title == 'Reference Designs')
		arrList = personalResponse.referenceDesigns;
	else if(title == 'Training')
		arrList = personalResponse.trainings;
	else if(title == 'Videos')
		arrList = personalResponse.videos; 
	
	var url="/webapp/recommendations/fixThisSettings.jsp";

	var obj = new Object;
	obj.assetID = assetId;
	obj.assetType = assetType;
	obj.code = code;
	obj.name = name;
	obj.url = linkurl;
	obj.isCollateral = isCollateral;

	var itemString = '';
	for(var i = 0; i < arrList[index].recommenders.length; i++){
		if(i>0)
			itemString += '@@';

		itemString += (arrList[index].recommenders[i].assetId + ','+arrList[index].recommenders[i].assetType);
		
	}

	obj.items = itemString;
	


	jQuery.post(url,obj, function(response){
		//alert(response);
		var popID ='recoSettingspopup'; //Get Popup Name

		//Fade in the Popup and add close button
		jQuery('#reco_setting').removeClass('loading');
		jQuery('#reco_setting').css('display','none');
		jQuery('#' + popID).fadeIn().css({ 'width': Number( 600 ) });
		
		//Define margin for center alignment (vertical + horizontal) - we add 80 to the height/width to accomodate for the padding + border width defined in the css
		var popMargTop = (jQuery('#' + popID).height() + 80) / 2;
		var popMargLeft = (jQuery('#' + popID).width() + 80) / 2;
		

		var header=document.getElementById('recoSettingspopup');
		header.style.visibility="visible";
		
		var innerHTMLstr = "";
		innerHTMLstr+='<div  class="draggable_div_recoSettings" onmousedown="startdrag(this, event);" >';
		innerHTMLstr +='<div class="drag-handle" >';
		innerHTMLstr +='<a class="reco_settings">Recommendation Settings</a>';
		innerHTMLstr +='<a  href="#" style="float: right;"><img OnClick="closeSettingsPopup();" style=" border : none;" src="/shared/images/blockViewerClose.gif"></a> ';
		innerHTMLstr +='<img style="float: right;margin-right: 10px;" src="/shared/images/blockViewerDevider.gif">';
		innerHTMLstr +='</div>';
		innerHTMLstr +='<div id="recosettingstable">';
	//	head.style.display='none';
		innerHTMLstr +=response;	  	
		innerHTMLstr +='</div>';
		header.innerHTML=innerHTMLstr;
	});
}


//modified by b17086 for web recommendations
function excludeHistoryItem(id, type, source,divId,excludebutton,saved){
	//alert("inside excludeHistoryItem");
	var obj = new Object;
	obj.assetID = id;
	obj.assetType = type;

	if(source.checked == true)
		obj.exclude = 'Y';
	else
		obj.exclude = 'N';

		var url="/webapp/history/excludeHistoryItem.sp";
		jQuery.post(url,obj, function(response){
		if(document.getElementById(saved)!=null){
			var saveddiv=document.getElementById(saved);
			saveddiv.style.display="none";
			jQuery('.'+saved).removeAttr('id') ;
		}
		document.getElementById(divId).innerHTML += '<div id="'+saved+'" class="'+saved+'"><b>'+response.status+'</b><br/></div>';
		if(source.checked == true){
			document.getElementById(excludebutton).checked=true;
		}
		else{
			document.getElementById(excludebutton).checked=false;
		}
	});

}


function deleteHistoryItem(id, type,frmFixThis,rowId,columnId,excludebutton,removebutton){
//	alert("inside deleteHistoryItem");
//	alert(j);
	var obj = new Object;
	obj.assetID = id;
	obj.assetType = type;
	obj.fromFixThis = frmFixThis;

	var url="/webapp/history/deleteUserHistoryItem.sp";

	jQuery.post(url,obj, function(response){

		var statusStr = "";

		if(response.status == 'Saved')
			statusStr = 'Removed';
		else
			statusStr = response.status;
		
		document.getElementById(columnId).innerHTML += '<br/><b>'+statusStr+'</b><br/>';
		document.getElementById(removebutton).checked=true;
		document.getElementById(removebutton).disabled=true;
		document.getElementById(excludebutton).disabled=true;
		jQuery('#'+rowId).attr('class','disabled');
	
	});

}


function excludeRecoItem(id, type, source){
	//alert("inside excludeHistoryItem");

	var obj = new Object;
	obj.assetID = id;
	obj.assetType = type;

	if(source.checked == true)
		obj.exclude = 'Y';
	else
		obj.exclude = 'N';

	var url="/webapp/history/excludeRecoItem.sp";

	jQuery.post(url,obj, function(response){

		document.getElementById("exludeRecoStatus").innerHTML = '<br/>'+response.status+'<br/>';
	
	});

}
function openDefaultWindow(defaultresponse)
{
jQuery('#scrollFooterdisplay').css('display','none');
var browsable=document.getElementById('browsabledisplay');
var url="/webapp/recommendations/recommendationDefault.jsp";
var obj=new Object;
obj.defaultresponse=defaultresponse
jQuery.post(url,obj, function(response){
//alert(response);
jQuery('#personal_recoContent').removeClass('loading');
if(navigator.appName=="Microsoft Internet Explorer"){
jQuery('#personal_recoContent').attr('class','noHistoryIE');
}
else
jQuery('#personal_recoContent').attr('class','noHistory');
jQuery('#browsabledisplay').css('overflow','auto');
jQuery('#browsabledisplay').css('height','150px');  
browsable.innerHTML=response;
});

}
