 function callAjax() {
      
	   if(navigator.appName=="Microsoft Internet Explorer")
	  {
	 
	  completePath="/mfretail_pricenperf/publicjsp/leftmenu_ie.jsp";
	 
	  }
	  else
	  {
        completePath="/mfretail_pricenperf/publicjsp/leftmenu_mozilla.jsp";
	  }
	  http_request_daily = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
       
		http_request_daily = new XMLHttpRequest();
         if (http_request_daily.overrideMimeType) {
            http_request_daily.overrideMimeType('text/xml');
         }
      } else if (window.ActiveXObject) { // IE
         try {
           
			http_request_daily = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
			
               http_request_daily = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request_daily) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
      http_request_daily.onreadystatechange = alertContentDaily;
     http_request_daily.open('GET',completePath, true);
     http_request_daily.send(null);
   }

   function alertContentDaily() {
      
	  
	  if (http_request_daily.readyState == 4) {
         
		 if (http_request_daily.status == 200) {
          
            var val = http_request_daily.responseText;
			
            		
            document.getElementById("check").innerHTML=val;
			
			if(!(navigator.appName=="Microsoft Internet Explorer"))
             {
               
	           
			   if(document.getElementById("gefundsa"))
				 { fnShowMFRetail('3','N');
				   fnShowPriceNPerf('1','O'); } 
             if(document.getElementById("institutional"))
				 {
				 fnShowMFRetail('3','N');
				 fnShowPriceNPerf('2','O');}
			 if(document.getElementById("investment"))
				 {
				 fnShowMFRetail('3','N');
				 fnShowPriceNPerf('3','O');}
			 if(document.getElementById("life"))
				 {
				 fnShowMFRetail('3','N');
				 fnShowPriceNPerf('4','O');}
			 
			 if(document.getElementById("short_load"))
				 {
                    fnShowFullMenu('1');

				 }
			 if(document.getElementById("long_load"))
				 {
                      fnShowFullMenu('1');

				 }
			 
			 
			 }

             
			 loads();
			
		
			
            }
      }
   }




function factsheet(strURL)
{
	newwin = window.open(strURL,"","toolbar=Yes,location=Yes,directories=Yes,status=Yes,menubar=Yes,scrollbars=Yes,resizable=Yes,height=500,width=700,left=60,top=60");
}

 function checkBrowser() {
  this.ver=navigator.appVersion
  this.dom=document.getElementById?1:0
  this.ie5=( (this.ver.indexOf("MSIE 5")>-1) && this.dom)?1:0;
  this.ie4=(document.all && !this.dom)?1:0;
  this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
  this.ns4=(document.layers && !this.dom)?1:0;
  this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
  return this
 }

 var bw=new checkBrowser()

 function openPositonWin(url, width, height, top, left) {
  var winCount = Math.round(Math.random() * 50);
  windowName = "newWin" + winCount;

  params = "toolbar=1,";
  params += "location=1,";
  params += "directories=1,";
  params += "status=1,";
  params += "menubar=1,";
  params += "scrollbars=1,";
  params += "resizable=1,";
  params += (bw.ns4||bw.ns5) ? "screenx="+left+"," : "left="+left+",";
  params += (bw.ns4||bw.ns5) ? "screeny="+top+"," : "top="+top+",";
  params += "width="+width+",";
  params += "height="+height;

  win = window.open(url, windowName, params);
  win.opener.name = "opener";
 }

function fnShowFullMenu(lftNavinput)
{
	fnShowMFRetail('3');
	fnShowPriceNPerf(lftNavinput,'O');
}



function loads()
{
	
	if(document.getElementById("dailyPrices"))
		
	{
	
	var newdate = new Date();
	var mon = newdate.getMonth() + 1;
	//if ((mon.toString).length == 1)
	//	mon = "0" + mon;
	var dy = newdate.getDate();
	if (dy <= 9)
		dy = "0" + dy;
	var yr = newdate.getFullYear();
	document.form1.PriceDate.value = mon + "/" + dy + "/" + yr;
	}
	
	
	if(navigator.appName=="Microsoft Internet Explorer")
             {
               
	           
			   if(document.getElementById("gefundsa"))
				 { fnShowMFRetail('3','N');
				   fnShowPriceNPerf('1','O'); } 
             if(document.getElementById("institutional"))
				 {
				 fnShowMFRetail('3','N');
				 fnShowPriceNPerf('2','O');}
			 if(document.getElementById("investment"))
				 {
				 fnShowMFRetail('3','N');
				 fnShowPriceNPerf('3','O');}
			 if(document.getElementById("life"))
				 {
				 fnShowMFRetail('3','N');
				 fnShowPriceNPerf('4','O');}
			 
			 if(document.getElementById("short_load"))
				 {
                    fnShowFullMenu('1');

				 }
			 if(document.getElementById("long_load"))
				 {
                      fnShowFullMenu('1');

				 }
			 
			 
			 }
	
}

function dates(strprices)
{
	var lstrPriceDate = document.form1.PriceDate.value;

	if(lstrPriceDate == '' || lstrPriceDate == null){
		alert('Please Enter Date');
		return;
	}
	if(lstrPriceDate != '' && !validateDate(lstrPriceDate)){
		alert('Wrong Date');
		return;
	}
	document.form1.submit();
}

function doSubmit()
{
 	document.form1.method="post";
	document.form1.action="/mfretail_pricenperf/gedailypricesservlet";
	document.form1.submit();
}








//error

function fun()
{
	document.form_error.action="/mfretail_pricenperf/gedailypricesservlet";
	document.form_error.submit();
}


//top nav
	

	function fnOpenMFFile(strURL)
	{
		var winOpts;
		winOpts = '';
		if (window.screen.width <= 800)
			winOpts = 'left=13,top=107,width=740,height=300,';
		if ((window.screen.width >= 800)&&(window.screen.width == 1024))
			winOpts = 'left=90,top=135,width=798,height=400,';
		else if (window.screen.width > 1024)
			winOpts = 'left=120,top=135,width=950,height=500,';

		winOpts = winOpts + 'status=yes,menubar=yes,resizable=yes,scrollbars=yes';
		newwin = window.open(strURL,"popWin",winOpts);
	}

	function findHost() 
	{ 
		var URLhost;
		var URLRedirect;
		URLhost = window.location.host;

		switch(URLhost){
			case "www.gefunds.com":
				 URLRedirect = "www.geam.com";
				 break;
			case "dr.gefunds.com":
				 URLRedirect = "dr.geam.com";
				 break;
			case "stage.gefunds.com":
				 URLRedirect = "stage.geam.com";
				 break;
			case "geamstlxkant01d.geam.corporate.ge.com:9080":
				 URLRedirect = "geamext.geam.corporate.ge.com:9080";
				 break;
			case "localdev.gefunds.com":
				 URLRedirect = "localdev.geam.com";
				 break;
			default :
				 URLRedirect = "www.geam.com";
				 break;
		}
		return URLRedirect;
	} 

	function fnOpenInstDoc(path)
	{
		var AbsolutePath;
		AbsolutePath = "http://" + findHost() + path;
		var winOpts;
		winOpts = '';

		if ((window.screen.width >= 800) && (window.screen.width == 1024))
			winOpts = 'left=90,top=135,width=798,height=400,';
		else if (window.screen.width > 1024)
			winOpts = 'left=120,top=135,width=950,height=500,';

		winOpts = winOpts + 'status=yes,menubar=yes,resizable=yes,scrollbars=yes';
		newwin = window.open(AbsolutePath,"popWin",winOpts);
	}

	
	

			var BW;
			if (navigator.appName.indexOf('Netscape')!=-1) {
				if (navigator.appVersion.indexOf('5.0')!=-1) BW='MO';
				else BW='NC';
			}
			if (navigator.userAgent.indexOf('Opera')!=-1) BW='OP';
			if (!BW) BW="IE";
			
			var uAgt	=	navigator.appName.toLowerCase();
			var isIE	=	uAgt.indexOf("microsoft") != -1;
			var isNS	=	uAgt.indexOf("netscape") != -1;
			//------------------------------------------------------------------------------------------------------------------------------------
			function show_menu(dlname, place, hidedd){ //htmlfuncs.php
				var o = document.getElementById(dlname);
				var p = document.getElementById(place);
				if ( o != null ) {
					o.style.left = findPosX(p);
					o.style.top = findPosY(p);
					o.style.visibility='visible';
				}
			
				if (hidedd && BW=='IE') {
					for (var i = 0; i<document.forms.length; i++){
						var cform=document.forms[i];
						flen=cform.elements.length;
						if (flen>100) flen=100;
						for (var j = 0; j<flen; j++){
							if (cform.elements(j).type.indexOf('select') != -1) {
								var field = cform.elements(j);
								cform.elements(j).style.visibility = "hidden";
							}
						}
					}
				}
			
			}
			//------------------------------------------------------------------------------------------------------------------------------------
			function hide_menu(dlname, hidedd){ //htmlfuncs.php
				if ((BW=='MO')||(BW=='OP')) {
					document.getElementById(dlname).style.visibility='hidden';
				}
				if (BW=='NC') {
					eval('document.'+dlname).visibility="hide";
				}
				if (BW=='IE') {
					eval("document.all."+dlname).style.visibility='hidden';
				}
			
				if (hidedd && BW=='IE') {
					for (var i = 0; i<document.forms.length; i++){
						var cform=document.forms[i];
						flen=cform.elements.length;
						if (flen>100) flen=100;
						for (var j = 0; j<flen; j++){
							if (cform.elements(j).type.indexOf('select') != -1) cform.elements(j).style.visibility = "visible";
						}
					}
				}
			}
			
			function findPosX(obj)
			{
				var curleft = 0;
				if (obj.offsetParent)
				{
					while (obj.offsetParent)
					{
						curleft += obj.offsetLeft
						obj = obj.offsetParent;
					}
				}
				else if (obj.x)
					curleft += obj.x;
				return curleft;
			}
			
			function findPosY(obj)
			{
				var curtop = 0;
				if (obj.offsetParent)
				{
					while (obj.offsetParent)
					{
						curtop += obj.offsetTop
						obj = obj.offsetParent;
					}
				}
				else if (obj.y)
					curtop += obj.y;
				return curtop;
			}
			
			function highlight(id, on)
			{
				var o = document.getElementById("tdc" + id);
				if(o != null)
				{
					if(on) o.className = "topnavH";
					else o.className = "topnav";
				}
				o = document.getElementById("ac" + id);
				if(o != null)
				{
					if(on) o.className = "topnavH";
					else o.className = "topnav";
				}
				o = document.getElementById("imgc" + id);
				if(o != null)
				{
					if(on) o.src = "/common/img/arrow_menu_light.gif";
					else o.src = "/common/img/arrow_menu_dark.gif";
				}
			}
			//------------------------------------------------------------------------------------------------------------------------------------
				
	<!-- ********************************** Menu Settings & Styles ********************************** -->
			
			function imenus_data0(){
			
				this.unlock = "wkvmcnh"
				this.enable_visual_design_mode = false
			
				this.main_is_horizontal = true
				this.menu_showhide_delay = 0
			
			   /*---------------------------------------------
			   Images (expand and pointer icons)
			   ---------------------------------------------*/
			
				this.sub_expand_image = '/common/img/arrow_menu_dark.gif'
				this.sub_expand_image_hover = '/common/img/arrow_menu_light.gif'
				this.sub_expand_image_width = '18'
				this.sub_expand_image_height = '17'
				this.sub_expand_image_offx = '0'
				this.sub_expand_image_offy = '-2'
			
			   /*---------------------------------------------
			   Global Menu Styles
			   ---------------------------------------------*/
			
				//Main Menu
			
				this.main_container_styles = "background-color:#ffffff; border-style:outset; border-color:#6a6a6a; border-width:0px; padding:0px; margin:0px; "
				this.main_item_styles = "color:#333333; text-align:left; font-family:Arial; font-size:12px; font-weight:normal; text-decoration:none; border-style:inset; border-color:#dddddd; border-width:0px; padding:0px 0px 0px 0px ; "
				this.main_item_hover_styles = "background-color:#efefef; text-decoration:none; "
				this.main_item_active_styles = "background-color:#efefef; text-decoration:none; "
			
				//Sub Menu
				this.subs_container_styles = "filter:progid:DXImageTransform.Microsoft.Fade(duration=0.0); background-color:#E6E6E6; border-style:solid; border-top:none; border-color:grey; border-width:1px; padding:0px; margin:4px 0px 0px; "
				this.subs_item_styles = "background-image:url(/common/img/caret_dark.gif); color:#000000; text-align:left; font-size:11px; font-weight:normal; text-decoration:none; border-style:none; border-top:solid; border-color:grey; border-width:1px; padding:5px 0px 5px 28px ; margin:0px 0px 0px 0px ;"
				this.subs_item_hover_styles = "background-image:url(/common/img/caret_light.gif); background-color:#3A73BA; color:#ffffff; border-color:#ffffff;"
				this.subs_item_active_styles = "background-image:url(/common/img/caret_light.gif); background-color:#3A73BA; color:#ffffff;"
			}
			
			
			<!--  ********************************** Infinite Menus Source Code (Do Not Alter!) **********************************
	
	




//left menu


function fnMenuOpen()
	{
		var strSiteURL = window.location.href;
		var arrSiteURL = new Array();
		var strMenuOption = "";
		arrSiteURL = strSiteURL.split('/');
		if(arrSiteURL.length >= 5){
			strMenuOption = arrSiteURL[3];
			if(strMenuOption == 'mfretail_pricenperf')
				fnShowMFRetail('3');
		}
	}

	function fnShowMFRetail(x,y)
	{
		
		if(navigator.appName=="Microsoft Internet Explorer")
		{
		if (document.getElementById('MFRetail'+x).style.position == "relative"){
			document.getElementById('MFRetail'+x).style.position="absolute";
			document.getElementById('MFRetail'+x).style.visibility="hidden";
			document.getElementById('MFRetail'+x+'_img').src="/common/img/navBul1_1.gif";
			document.getElementById('MFRetail'+x+'_hdr').style.color="#3b73b9";

			for(var x=1;x<5;x++)
				fnShowPriceNPerf(x, y);
			
			for(var a=1;a<6;a++){
				document.getElementById('MFRetail'+a+'_hdr').style.fontWeight= 'normal';
				if(a == x){
					document.getElementById('MFRetail'+a+'_hdr').style.fontWeight= 'normal';
				}
			}
		}
		else{
			document.getElementById('MFRetail'+x).style.position="relative";
			document.getElementById('MFRetail'+x).style.visibility="visible";
			document.getElementById('MFRetail'+x+'_img').src="/common/img/navBul_sel_1.gif";
			document.getElementById('MFRetail'+x+'_hdr').style.fontWeight= 'bold';
			document.getElementById('MFRetail'+x+'_hdr').style.color= '#6A6A6A';

			for(var i=1;i<6;i++){
				if(i != x){
					document.getElementById('MFRetail'+i).style.visibility='hidden';
					document.getElementById('MFRetail'+i).style.position='absolute';
					document.getElementById('MFRetail'+i+'_img').src="/common/img/navBul1_1.gif";
					document.getElementById('MFRetail'+i+'_hdr').style.color= '#3b73b9';
					document.getElementById('MFRetail'+i+'_hdr').style.fontWeight= 'normal';
				}
			}
		}
		
		if(x != 3){
			for(var i=1;i<5;i++){
				document.getElementById('MFPriceNPerf'+i).style.visibility='hidden';
				document.getElementById('MFPriceNPerf'+i).style.position='absolute';
				document.getElementById('MFPriceNPerf'+i+'_img').src="/common/img/navBul1_1.gif";
				document.getElementById('MFPriceNPerf'+i+'_hdr').style.color= '#3b73b9';
				document.getElementById('MFPriceNPerf'+i+'_hdr').style.fontWeight= 'normal';
			}
		}
		}//end of if

		else

		{
         if (document.getElementById('MFRetail'+x).style.position == "relative"){
			document.getElementById('MFRetail'+x).style.position="fixed";
			document.getElementById('MFRetail'+x).style.visibility="hidden";
			document.getElementById('MFRetail'+x+'_img').src="/common/img/navBul1_1.gif";
			document.getElementById('MFRetail'+x+'_hdr').style.color="#3b73b9";
            for(var x=1;x<5;x++)
				fnShowPriceNPerf(x, y);
			for(var a=1;a<6;a++){
				
				if(a == x){
					document.getElementById('MFRetail'+a+'_hdr').style.fontWeight= 'normal';
				}
			}
		}
		else{
			document.getElementById('MFRetail'+x).style.position="relative";
			document.getElementById('MFRetail'+x).style.visibility="visible";
			document.getElementById('MFRetail'+x+'_img').src="/common/img/navBul_sel_1.gif";
			document.getElementById('MFRetail'+x+'_hdr').style.fontWeight= 'bold';
			document.getElementById('MFRetail'+x+'_hdr').style.color= '#6A6A6A';

			for(var i=1;i<6;i++){
				if(i != x){
					document.getElementById('MFRetail'+i).style.visibility='hidden';
					document.getElementById('MFRetail'+i).style.position='fixed';
					document.getElementById('MFRetail'+i+'_img').src="/common/img/navBul1_1.gif";
					document.getElementById('MFRetail'+i+'_hdr').style.color= '#3b73b9';
					document.getElementById('MFRetail'+i+'_hdr').style.fontWeight= 'normal';
				}
			}
		}
		
		if(x != 3){
			for(var i=1;i<5;i++){
				document.getElementById('MFPriceNPerf'+i).style.visibility='hidden';
				document.getElementById('MFPriceNPerf'+i).style.position='fixed';
				document.getElementById('MFPriceNPerf'+i+'_img').src="/common/img/navBul1_1.gif";
				document.getElementById('MFPriceNPerf'+i+'_hdr').style.color= '#3b73b9';
				document.getElementById('MFPriceNPerf'+i+'_hdr').style.fontWeight= 'normal';
			}
		}




		}
	
	
	}

	function fnShowPriceNPerf(x, y)
	{
		if(navigator.appName=="Microsoft Internet Explorer")
		{
		if(y != 'O'){
			if (document.getElementById('MFRetail3').style.position == "relative"){
				document.getElementById('MFRetail3').style.position="absolute";
				document.getElementById('MFRetail3').style.visibility="hidden";
				document.getElementById('MFRetail3_img').src="/common/img/navBul1_1.gif";
				document.getElementById('MFRetail3_hdr').style.color="#3b73b9";
				document.getElementById('MFRetail3_hdr').style.fontWeight= 'normal';
			}
			else{
				document.getElementById('MFRetail3').style.position="relative";
				document.getElementById('MFRetail3').style.visibility="visible";
				document.getElementById('MFRetail3_img').src="/common/img/navBul_sel_1.gif";
				document.getElementById('MFRetail3_hdr').style.fontWeight= 'bold';
				document.getElementById('MFRetail3_hdr').style.color= '#6A6A6A';
			}
		}
	
		if (document.getElementById('MFPriceNPerf'+x).style.position == "relative"){
			document.getElementById('MFPriceNPerf'+x).style.position="absolute";
			document.getElementById('MFPriceNPerf'+x).style.visibility="hidden";
			document.getElementById('MFPriceNPerf'+x+'_img').src="/common/img/navBul1_1.gif";
			document.getElementById('MFPriceNPerf'+x+'_hdr').style.color="#3b73b9";

			for(var a=1;a<5;a++){
				if(a == x){
					document.getElementById('MFPriceNPerf'+a+'_hdr').style.fontWeight= 'normal';
				}
			}
		}
		else{
			document.getElementById('MFPriceNPerf'+x).style.position="relative";
			document.getElementById('MFPriceNPerf'+x).style.visibility="visible";
			document.getElementById('MFPriceNPerf'+x+'_img').src="/common/img/navBul_sel_1.gif";
			document.getElementById('MFPriceNPerf'+x+'_hdr').style.fontWeight= 'bold';
			document.getElementById('MFPriceNPerf'+x+'_hdr').style.color= '#6A6A6A';

			for(var i=1;i<5;i++){
				if(i != x){
					document.getElementById('MFPriceNPerf'+i).style.visibility='hidden';
					document.getElementById('MFPriceNPerf'+i).style.position='absolute';
					document.getElementById('MFPriceNPerf'+i+'_img').src="/common/img/navBul1_1.gif";
					document.getElementById('MFPriceNPerf'+i+'_hdr').style.color= '#3b73b9';
					document.getElementById('MFPriceNPerf'+i+'_hdr').style.fontWeight= 'normal';
				}
			}
		}
	
		}//end if

		else
		{

         if(y != 'O'){
			if (document.getElementById('MFRetail3').style.position == "relative"){
				document.getElementById('MFRetail3').style.position="fixed";
				document.getElementById('MFRetail3').style.visibility="hidden";
				document.getElementById('MFRetail3_img').src="/common/img/navBul1_1.gif";
				document.getElementById('MFRetail3_hdr').style.color="#3b73b9";
				document.getElementById('MFRetail3_hdr').style.fontWeight= 'normal';
			}
			else{
				document.getElementById('MFRetail3').style.position="relative";
				document.getElementById('MFRetail3').style.visibility="visible";
				document.getElementById('MFRetail3_img').src="/common/img/navBul_sel_1.gif";
				document.getElementById('MFRetail3_hdr').style.fontWeight= 'bold';
				document.getElementById('MFRetail3_hdr').style.color= '#6A6A6A';
			}
		}
	
		if (document.getElementById('MFPriceNPerf'+x).style.position == "relative"){
			document.getElementById('MFPriceNPerf'+x).style.position="fixed";
			document.getElementById('MFPriceNPerf'+x).style.visibility="hidden";
			document.getElementById('MFPriceNPerf'+x+'_img').src="/common/img/navBul1_1.gif";
			document.getElementById('MFPriceNPerf'+x+'_hdr').style.color="#3b73b9";

			for(var a=1;a<5;a++){
				if(a == x){
					document.getElementById('MFPriceNPerf'+a+'_hdr').style.fontWeight= 'normal';
				}
			}
		}
		else{
			document.getElementById('MFPriceNPerf'+x).style.position="relative";
			document.getElementById('MFPriceNPerf'+x).style.visibility="visible";
			document.getElementById('MFPriceNPerf'+x+'_img').src="/common/img/navBul_sel_1.gif";
			document.getElementById('MFPriceNPerf'+x+'_hdr').style.fontWeight= 'bold';
			document.getElementById('MFPriceNPerf'+x+'_hdr').style.color= '#6A6A6A';

			for(var i=1;i<5;i++){
				if(i != x){
					document.getElementById('MFPriceNPerf'+i).style.visibility='hidden';
					document.getElementById('MFPriceNPerf'+i).style.position='fixed';
					document.getElementById('MFPriceNPerf'+i+'_img').src="/common/img/navBul1_1.gif";
					document.getElementById('MFPriceNPerf'+i+'_hdr').style.color= '#3b73b9';
					document.getElementById('MFPriceNPerf'+i+'_hdr').style.fontWeight= 'normal';
				}
			}
		} 



		}
	
	
	
	}



//footer

function fnOpenMFDoc(strURL)
	{
		newwin = window.open(strURL,"","toolbar=Yes,location=Yes,directories=Yes,status=Yes,menubar=Yes,scrollbars=Yes,resizable=Yes,height=500,width=700,left=60,top=60")
	}



  















