
function CreateXmlHttpObject() { //fuction to return the xml http object
		var xmlhttp=false;	
		try{
			xmlhttp=new XMLHttpRequest();//creates a new ajax object
		}
		catch(e)	{		
			try{			
				xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");//this is for IE browser
			}
			catch(e){
				try{
				req = new ActiveXObject("Msxml2.XMLHTTP");//this is for IE browser
				}
				catch(e1){
					xmlhttp=false;//error creating object
				}
			}
		}
		 	
		return xmlhttp;
	}
	

  function CategoryGrab(strURL)
    {         
     var req = CreateXmlHttpObject(); // fuction to get xmlhttp object
     if (req)
     {
      req.onreadystatechange = function()
     {
      if (req.readyState == 4) { //data is retrieved from server
       if (req.status == 200) { // which reprents ok status                    
         document.getElementById('details').innerHTML=req.responseText;//put the results of the requests in or element
      }
      else
      { 
         alert("There was a problem while using XMLHTTP:\n");
      }
      }            
      }        
    req.open("GET", strURL, true); //open url using get method
    req.send(null);//send the results
     }
    }
	
	function CategoryGrab2(strURL1)
    	{         
    		 var req1 = CreateXmlHttpObject(); // fuction to get xmlhttp object
    		 if (req1)
    			 {
    			  req1.onreadystatechange = function()
    			 {
      if (req1.readyState == 4) { //data is retrieved from server
       if (req1.status == 200) { // which reprents ok status                    
         document.getElementById('details2').innerHTML=req1.responseText;//put the results of the requests in or element
      }
      else
      { 
         alert("There was a problem while using the script. :\n");
      }
      }            
      }        
    req1.open("GET", strURL1, true); //open url using get method
    req1.send(null);//send the results
     }
    }
	
	function CategoryGrab3(strURL1)
    	{         
    		 var req1 = CreateXmlHttpObject(); // fuction to get xmlhttp object
    		 if (req1)
    			 {
    			  req1.onreadystatechange = function()
    			 {
      if (req1.readyState == 4) { //data is retrieved from server
       if (req1.status == 200) { // which reprents ok status                    
         document.getElementById('details3').innerHTML=req1.responseText;//put the results of the requests in or element
      }
      else
      { 
         alert("There was a problem while using the script. :\n");
      }
      }            
      }        
    req1.open("GET", strURL1, true); //open url using get method
    req1.send(null);//send the results
     }
    }

function CategoryGrab4(strURL1)
    	{         
    		 var req1 = CreateXmlHttpObject(); // fuction to get xmlhttp object
    		 if (req1)
    			 {
    			  req1.onreadystatechange = function()
    			 {
      if (req1.readyState == 4) { //data is retrieved from server
       if (req1.status == 200) { // which reprents ok status                    
         document.getElementById('details4').innerHTML=req1.responseText;//put the results of the requests in or element
      }
      else
      { 
         alert("There was a problem while using the script. :\n");
      }
      }            
      }        
    req1.open("GET", strURL1, true); //open url using get method
    req1.send(null);//send the results
     }
    }


