
//(c)2007-Quintrics
//
//Ajax Function: Super Tab Control
function ajaxWebControls_SuperWebservice(aXmlFileName,aHtmlId,aSuperTabTagName,aPars,aWidth,aHeight)
{

	var xmlHttp;
	var browserType;
	try
	{
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	
	xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
			var myDiv=document.getElementById(aHtmlId); 
			insertScript(xmlHttp.responseText);
        }
      }
    
    var myAsp = "ajaxWebControls/ajaxWebControls_SuperWebservice.aspx";
    myAsp += "?XML=" + urlEncode(aXmlFileName);
    myAsp += "&Tag=" + aSuperTabTagName;
    myAsp += "&HtmlId=" + aHtmlId;
    myAsp += "&Pars=" + urlEncode(aPars);
    myAsp += "&W=" + aWidth;
    myAsp += "&H=" + aHeight;
    myAsp += "&Br=" + getBrowserVersion() + getBrowserLanguage();

    xmlHttp.open("GET", myAsp, true);
    
    xmlHttp.send(null);
    
}

