function ajaxrequest(){
	var MSXML_DOM=getDom("<Technology/>");
	//var MSXML_XMLHTTP= "Msxml2.XMLHTTP.3.0";
	var MSXML_XMLHTTP= getXmlHttpObject() ;
	var UNINITIALIZED= 0;
	var LOADING = 1;   
	var LOADED = 2;
	var INTERACTIVE = 3;
	var COMPLETE = 4;
	var SUBMIT_SERVLET_URL = "/community/jivelogin"; 
	var pageName="";
	var fromPageName="";
	var isIE = navigator.userAgent.toLowerCase().indexOf("msie") > -1;
	var isMoz = document.implementation && document.implementation.createDocument;
	var returnValue;
	
	var AjaxRequest;
	
	function getXmlHttpObject() {

             if (window.ActiveXObject) {
		    return new ActiveXObject("Microsoft.XMLHTTP");
             }
             if (document.implementation && document.implementation.createDocument) {
                  return new XMLHttpRequest();
             }
	  }

	function getDom(xml)
	{
		  if (window.ActiveXObject) {
                        var dom=new ActiveXObject("Microsoft.XMLDOm");
        		}

            if (document.implementation && document.implementation.createDocument) {
                        var domParser=new DOMParser();
                        var dom = domParser.parseFromString(xml,"text/xml");
            }
            return dom;
	}
		
	
	this.initializeAjaxRequest = function()
	{
		AjaxRequest = getXmlHttpObject();
	};
	
	
	
	 this.fetchSubmit = function(userName,passWord,form)
	 {
		try 
		{
			this.initializeAjaxRequest();
			if(AjaxRequest)
			{		
					var xmlDoc = MSXML_DOM; 
					returnValue=form;
					AjaxRequest.onreadystatechange = this.checkState; 
					AjaxRequest.open("POST",SUBMIT_SERVLET_URL+"?userName="+userName+"&passWord="+passWord,true); 
					AjaxRequest.send(xmlDoc.xml); 
			}
			else
			{   
				alert(MSXML_XMLHTTP + " request could not be created.");
				return;
			}
		}
		catch(e) 
		{
			alert(e.description);
		}
	};
	

	this.checkState = function() {

		
		if(AjaxRequest.readyState == COMPLETE) {
			try {
				var xmlDoc = MSXML_DOM;
				var ajaxres=(AjaxRequest.responseText).split("</Techchannels>");
				ajaxres=ajaxres[0]+"</Techchannels>";
				
				if(isMoz && getDom(ajaxres)) 
				{
				      xmlDoc=getDom(ajaxres);
				 	
					var islogin;

					if(xmlDoc.getElementsByTagName("islogin")!=null){
					  var val= xmlDoc.getElementsByTagName("islogin");
		 			  islogin=val[0].firstChild.nodeValue;
					}
					if(islogin=="false"){
						alert("Please enter valid Username and Password");
					   
					}
					else
					  returnValue.submit();




				    
				}
				else if(isIE && xmlDoc.loadXML(ajaxres)) 
				{
				       var islogin;

					if(xmlDoc.getElementsByTagName("islogin")!=null){
					  var val= xmlDoc.getElementsByTagName("islogin");
		 			  islogin=val[0].firstChild.nodeValue;
					}
					if(islogin=="false"){
						alert("Please enter valid Username and Password");
					
					}
					else
					  returnValue.submit();


				}
				else 
				{
					alert("Unable to load response xml."+AjaxRequest.responsetext);
				}
			}	
			catch(e) {
				alert(e.description);
			}
			
		}
		else if(AjaxRequest.readyState == INTERACTIVE) {	
		}		
	};
	

	
	
}