var xmlHttp25
function CreateXmlHttp25()
	{
		//Creating object of XMLHTTP in IE
		try
		{
			XmlHttp25 = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				XmlHttp25 = new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch(oc)
			{
				XmlHttp25 = null;	
			}
		}
		//Creating object of XMLHTTP in Mozilla and Safari 
		if(!XmlHttp25 && typeof XMLHttpRequest25 != "undefined") 
		{
			XmlHttp25 = new XMLHttpRequest();
		}
	}

function GetNfoDetail(type)
	{
		CreateXmlHttp25();
		document.body.style.cursor = "progress";
	/*	if (type == "A")
			document.getElementById("ImgE").src="../images/normal.gif";
		if (type =="Equity")
			document.getElementById("ImgE").src="../images/Equity1.gif";
		if (type == "Debt")
			document.getElementById("ImgE").src="../images/Debt1.gif";
		if (type =="Hybrid")
			document.getElementById("ImgE").src="../images/Hybrid1.gif";		*/
			
		var opt1 = document.getElementById("Nfodata");
		var requestUrl = "../MF/nfoupcomingajax.aspx?opttype="+ type+"&IpTrack="+ window.location.hostname +"&timeStamp="+new Date().getTime();
		
		if(XmlHttp25)
				{
					XmlHttp25.onreadystatechange = function(){GetNfoDetaildata(opt1);};
					XmlHttp25.open("GET", requestUrl,  true);
					XmlHttp25.send(null);					
				}
	}
	
	function GetNfoDetaildata(opt1)
	{
		// To make sure receiving response data from server is completed
		if(XmlHttp25.readyState == 4)
		{
			// To make sure valid response is received from the server, 200 means response received is OK
			if(XmlHttp25.status == 200)
			{
				document.getElementById("Nfodata").innerHTML = XmlHttp25.responseText;
				document.body.style.cursor = "auto";
			}
			else
			{
				document.getElementById("opt1").innerHTML = "<img src='../images/loading.gif'>";
			}
		}
	}
function GetXmlHttpObject(handler)
{ 
var objXmlHttp=null

if (navigator.userAgent.indexOf("Opera")>=0)
{
alert("This example doesn't work in Opera") 
return 
}
if (navigator.userAgent.indexOf("MSIE")>=0)
{ 
var strName="Msxml2.XMLHTTP"
if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
{
strName="Microsoft.XMLHTTP"
} 
try
{ 
objXmlHttp=new ActiveXObject(strName)
objXmlHttp.onreadystatechange=handler 
return objXmlHttp
} 
catch(e)
{ 
alert("Error. Scripting for ActiveX might be disabled") 
return 
} 
} 
if (navigator.userAgent.indexOf("Mozilla")>=0)
{
objXmlHttp=new XMLHttpRequest()
objXmlHttp.onload=handler
objXmlHttp.onerror=handler 
return objXmlHttp
}
} 






