		try {
				// for Mozilla
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				// for IE5+
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}

		function displayDetailsPopup( event, channelCode, languageCode, classCode, wormhole, prodCode, fundName )
		{

			var posX = 0;
			var posY = 0;
			var objDiv = document.getElementById( "infoDiv" );
			var objMessage = document.getElementById( "infoMessage" );
			var objFundName = document.getElementById( "fundName" );
			
			resetInfoDivPosition();
			xmlhttp.open( 'GET', '/auxil/popup.asp?reload=yes&f_cc=' + channelCode + '&f_lc=' + languageCode + '&f_ac=' + classCode + '&f_fc=' + wormhole + '&f_pc=' + prodCode, false );
			xmlhttp.send( null );
			if (window.event) {
					posX = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft;
					posY = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop;
					strMessage = xmlhttp.responseText;
				}
				else {
					posX = event.clientX + window.scrollX;
					posY = event.clientY + window.scrollY;
					strMessage = xmlhttp.responseText;
			}
			objMessage.innerHTML = strMessage;
			objFundName.innerHTML = fundName;

			/* BEGIN ZEBRA */
      try {
  			for( var i = 0; i < fpmZebras.length; i++ )
  			{
  				var cID = new RegExp( 'id=\"' + fpmZebras[ i ] + '\"' );
  				if( cID.test( strMessage ))
  					fpmZebra( fpmZebras[ i ]);
  			}
  	  } catch(ex) {
  	  }
			/* END ZEBRA */

			var intDivWidth = objDiv.offsetWidth;
			objDiv.style.top = posY - 12;
			objDiv.style.left = posX - parseInt(intDivWidth) - 2;
		}
		
		function resetInfoDivPosition() {
			var objDiv = document.getElementById("infoDiv")
			objDiv.style.top = -1000
			objDiv.style.left = -1000
		}
		
		function addToList(intFID, intType) {
			xmlhttp.open("GET", "xmlhttprequest_server.asp?mode=98&fid=" + intFID + "&type=" + intType, false);
			xmlhttp.send(null)
			if (xmlhttp.responseText.indexOf("false") > 0) {
					NewWindow('/ch/english/my_fund_list/my_login.asp?fid=' + intFID + '&type=' + intType,'ref','900','600','yes')
				}
				else {
					var intWidth = window.screen.width
					var intHeight = window.screen.height
					var intX = (intWidth-250)/2
					var intY = (intHeight-80)/2
					var strFeatures = "top=" + intY + ", left=" + intX + ", height=80, width=250, directories=no; status=no, toolbar=no, menubar=no, location=no"
					window.open("showModal_FundAdded.asp?fid=" + intFID, null, strFeatures)
			}
		}

		function NewWindow(mypage,myname,w,h,scroll) {
			checkPopUp()
			LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
			TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
			settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
			win = window.open(mypage,myname,settings)
		}
		
		function checkPopUp() {
			if (typeof(win) != 'undefined') {
				if (!win.closed) win.close()
			}
		}
