// JavaScript Document
function callFunction(a)
{
		alert(a);
		
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
	   	{
			alert ("Your browser does not support AJAX!");
			return;
		}
		var url;
		
		if(a=="overview")
			url="html/overview.html";
		else if(a=="about")
			url="html/aboutus.html";
		else if(a=="home")
			url="html/overview.html";
		else if(a=="contact")
			url="html/contactus.html";
		else if(a=="chat")
			url="html/chat.html";
		else if(a=="blog")
			url="html/blog.html";
		else if(a=="trivia")	
			url="html/trivia.html";		
		else if(a=="disclaimer")				
			url="html/disclaimer.html";
		else if(a=="privacy")				
			url="privacy_policy.html";
			
		else if(a=="K12")	
			url="listSubCat.aspx?cat_fl_id=1";		
		else if(a=="1")	
			url="listProduct.aspx?Prod_id=1";		
			
		else if(a=="IT")				
			url="listSubCat.aspx?cat_fl_id=5";			
		else if(a=="5")				
			url="listProduct.aspx?Prod_id=15";
		else if(a=="5_14")				
			url="listProduct.aspx?Prod_id=14";
		else if(a=="5_13")				
			url="listProduct.aspx?Prod_id=13";
		else if(a=="5_12")				
			url="listProduct.aspx?Prod_id=12";
		else if(a=="5_9")				
			url="listProduct.aspx?Prod_id=9";
		else if(a=="5_8")				
			url="listProduct.aspx?Prod_id=8";
		else if(a=="5_10")				
			url="listProduct.aspx?Prod_id=10";
			
		else if(a=="Info")				
			url="listSubCat.aspx?cat_fl_id=6";
		else if(a=="6_3")				
			url="listProduct.aspx?Prod_id=3";
		else if(a=="6_4")				
			url="listProduct.aspx?Prod_id=4";
			
	
							
		else if(a=="BKS")				
			url="listSubCat.aspx?cat_fl_id=7";
			
		else if(a=="PROF")				
			url="listSubCat.aspx?cat_fl_id=9";
			
					
		else if(a=="register")				
			url="custRegistration.aspx";	
			
		else if(a=="thanks")				
			url="html/thanks.html";	
			
			
			
		else if(a=="1.1")
			url="affiliate.aspx";
			
		else if(a=="1.2")
		{
			url="html/thanks.html";	
			
			
		}
		else if(a=="1.3")
		{
			url="feedbackregistration.aspx";	
			
			
		}
		else if(a=="1.4")
		{
			url="partner.aspx";	
			
			
		}
		else if(a=="1.5")
		{
			url="advertiseregistration.aspx";	
	
			
		}	
		alert(url);//shahaji
		xmlHttp.onreadystatechange=stateChanged;
		xmlHttp.open("GET",url,false);
		xmlHttp.send(null);	
}
function stateChanged()
{
       if (xmlHttp.readyState==4)
       {
	   		//alert(xmlHttp.responseText);			
           // document.getElementById("pt").innerHTML=xmlHttp.responseText;
             document.getElementById("ioltd").innerHTML=xmlHttp.responseText;
       }
}
function GetXmlHttpObject()
{
       var xmlHttp=null;
       try
       {
               // Firefox, Opera 8.0+, Safari
               xmlHttp=new XMLHttpRequest();
       }
       catch (e)
       {
               // Internet Explorer
               try
               {
                       xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
               }
               catch (e)
               {
                       xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
               }
       }
       return xmlHttp;
}