 function doHttpRequestalert() { 

try{

		if (httpalert){ httpalert.abort() };
	// This function does the AJAX request
		httpalert = getXHTTPalert();
	  
		httpalert.open("GET", "/ajax_showform.asp?rnd="+Math.random()*9999999999, true);
		
		httpalert.onreadystatechange = getHttpResalert;
		
		httpalert.send(null);
		
	}
	catch(err)
	{

	}
}
 
 
//---------------------------ajax functions----------------------------

  
  //*************************************************************************************
  
  var httpalert = false ; //= getXHTTP(); // This executes when the page first loads.
function getXHTTPalert() {
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
		http = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
		try {
		 http = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
		 http = false;
		}
	 }
	@end @*/
	if (!httpalert && typeof XMLHttpRequest!='undefined') {
		try {
			httpalert = new XMLHttpRequest();
		} catch (e) {
			httpalert=false;
		}
	}
	if (!httpalert && window.createRequest) {
		try {
			httpalert = window.createRequest();
		} catch (e) {
			httpalert=false;
		}
	}	
	if (httpalert==false)
	{
		httpalert = _getXHTTPalert1()
	}
	return httpalert;
}
  //*************************************************************************************
  
  
  function getHttpResalert() {
  if (httpalert.readyState == 4) { 	
		if (document.getElementById('blogloginform'))
		{
 	    resalert = httpalert.responseText;  // These following lines get the response and update the page
		
			//SetCookiealert('alertrefresh',1, 2);

			//var bdisplayonlinealert = (resalert.indexOf("displayonlinealert") >= 0);
			//if (bdisplayonlinealert)
				//{

				document.getElementById('blogloginform').innerHTML = resalert;	

				document.getElementById('blogloginform').style.display = 'block';

				//moveImage()
			//	}
	     }
  }
}



//###############################latest comments #######################################
 function doHttpRequestcomm() { 

try{

		if (httpcomm){ httpcomm.abort() };
	// This function does the AJAX request
		httpcomm = getXHTTPcomm();
	  
		httpcomm.open("GET", "/ajax_showcomments.asp?rnd="+Math.random()*9999999999, true);
		
		httpcomm.onreadystatechange = getHttpRescomm;
		
		httpcomm.send(null);
		
	}
	catch(err)
	{

	}
}
 
 
//---------------------------ajax functions----------------------------

  
  //*************************************************************************************
  
  var httpcomm = false ; //= getXHTTP(); // This executes when the page first loads.
function getXHTTPcomm() {
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
		http = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
		try {
		 http = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
		 http = false;
		}
	 }
	@end @*/
	if (!httpcomm && typeof XMLHttpRequest!='undefined') {
		try {
			httpcomm = new XMLHttpRequest();
		} catch (e) {
			httpcomm=false;
		}
	}
	if (!httpcomm && window.createRequest) {
		try {
			httpcomm = window.createRequest();
		} catch (e) {
			httpcomm=false;
		}
	}	
	if (httpcomm==false)
	{
		httpcomm = _getXHTTPalert4()
	}
	return httpcomm;
}
  //*************************************************************************************
  
  
  function getHttpRescomm() {
  if (httpcomm.readyState == 4) { 	
		if (document.getElementById('blogcommarea'))
		{
 	    rescomm = httpcomm.responseText;  // These following lines get the response and update the page
		
			//SetCookiealert('alertrefresh',1, 2);

			//var bdisplayonlinealert = (resalert.indexOf("displayonlinealert") >= 0);
			//if (bdisplayonlinealert)
				//{

				document.getElementById('blogcommarea').innerHTML = rescomm;	

				document.getElementById('blogcommarea').style.display = 'block';

				//moveImage()
			//	}
	     }
  }
}


//#####################################################################################
 function doHttpRequestalertwelc() { 

try{
		if (httpalertwelc){ httpalertwelc.abort() };
		
	
// This function does the AJAX request
		httpalertwelc = getXHTTPalertwelc();
		httpalertwelc.open("GET", "/ajax_show_welcome.asp?rnd="+Math.random()*9999999999, true);
		httpalertwelc.onreadystatechange = getHttpResalertwelc;
		httpalertwelc.send(null);
	}
	catch(err)
	{
	//	waitDiv.style.display = "none";
		//updateDiv.style.display = "block";
	}
}
 
 
//---------------------------ajax functions----------------------------
var httpalertwelc = false; //= getXHTTP(); // This executes when the page first loads.
function getXHTTPalertwelc() {
	
	if (!httpalertwelc && typeof XMLHttpRequest!='undefined') {
		try {
			httpalertwelc = new XMLHttpRequest();
		} catch (e) {
			httpalertwelc=false;
		}
	}
	if (!httpalertwelc && window.createRequest) {
		try {
			httpalertwelc = window.createRequest();
		} catch (e) {
			httpalertwelc=false;
		}
	}	
	
	if (httpalertwelc==false)
	{
		httpalertwelc = _getXHTTPalert2()
	}
	return httpalertwelc;
}
  
  

  
  function getHttpResalertwelc() {
  if (httpalertwelc.readyState == 4) { 	
		if (document.getElementById('blogwelcalert'))
		{
 	    resalertwelc = httpalertwelc.responseText;  // These following lines get the response and update the page
		
			//SetCookiealertwelc('alertwelcrefresh',1, 2);

			//var bdisplayonlinealertwelc = (resalertwelc.indexOf("displayonlinealertwelc") >= 0);
			//if (bdisplayonlinealertwelc)
				//{
				document.getElementById('blogwelcalert').innerHTML = resalertwelc;	
				document.getElementById('blogwelcalert').style.display = 'block';
				
				//moveImage()
			//	}
	     }
  }
}



 function doHttpRequestalertlatestarticles() { 

try{
		if (httpalertlatestarticles){ httpalertlatestarticles.abort() };
		
	
// This function does the AJAX request
		httpalertlatestarticles = getXHTTPalertlatestarticles();
		httpalertlatestarticles.open("GET", "/ajax_latestarticles.asp?rnd="+Math.random()*9999999999, true);
		httpalertlatestarticles.onreadystatechange = getHttpResalertlatestarticles;
		httpalertlatestarticles.send(null);
	}
	catch(err)
	{
	//	waitDiv.style.display = "none";
		//updateDiv.style.display = "block";
	}
}
 
 
//---------------------------ajax functions----------------------------
var httpalertlatestarticles = false; //= getXHTTP(); // This executes when the page first loads.
function getXHTTPalertlatestarticles() {
	
	if (!httpalertlatestarticles && typeof XMLHttpRequest!='undefined') {
		try {
			httpalertlatestarticles = new XMLHttpRequest();
		} catch (e) {
			httpalertlatestarticles=false;
		}
	}
	if (!httpalertlatestarticles && window.createRequest) {
		try {
			httpalertlatestarticles = window.createRequest();
		} catch (e) {
			httpalertlatestarticles=false;
		}
	}	
	if (httpalertlatestarticles==false)
	{
		httpalertlatestarticles = _getXHTTPalert2()
	}
	return httpalertlatestarticles;
}
  
  

  
  function getHttpResalertlatestarticles() {
  if (httpalertlatestarticles.readyState == 4) { 	
		if (document.getElementById('bloglatestarticles'))
		{
 	    resalertlatestarticles = httpalertlatestarticles.responseText;  // These following lines get the response and update the page
		
			//SetCookiealertlatestarticles('alertlatestarticlesrefresh',1, 2);

			//var bdisplayonlinealertlatestarticles = (resalertlatestarticles.indexOf("displayonlinealertlatestarticles") >= 0);
			//if (bdisplayonlinealertlatestarticles)

//{
				document.getElementById('bloglatestarticles').innerHTML = resalertlatestarticles;	
				document.getElementById('bloglatestarticles').style.display = 'block';

				//moveImage()
			//	}
	     }
  }
}



function _getXHTTPalert1() {
  var xhttpalert1;
   try {   // The following "try" blocks get the XMLHTTP object for various browsers?
      xhttpalert1 = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xhttpalert1 = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
 		 // This block handles Mozilla/Firefox browsers...
	    try {
	      xhttpalert1 = new XMLHttpRequest();
	    } catch (e3) {
	      xhttpalert1 = false;
	    }
      }
    }
  return xhttpalert1; // Return the XMLHTTP object
}

function _getXHTTPalert2() {
  var xhttpalert2;
   try {   // The following "try" blocks get the XMLHTTP object for various browsers?
      xhttpalert2 = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xhttpalert2 = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
 		 // This block handles Mozilla/Firefox browsers...
	    try {
	      xhttpalert2 = new XMLHttpRequest();
	    } catch (e3) {
	      xhttpalert2 = false;
	    }
      }
    }
  return xhttpalert2; // Return the XMLHTTP object
}
function _getXHTTPalert3() {
  var xhttpalert3;
   try {   // The following "try" blocks get the XMLHTTP object for various browsers?
      xhttpalert3 = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xhttpalert3 = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
 		 // This block handles Mozilla/Firefox browsers...
	    try {
	      xhttpalert3 = new XMLHttpRequest();
	    } catch (e3) {
	      xhttpalert3 = false;
	    }
      }
    }
  return xhttpalert3; // Return the XMLHTTP object
}

function _getXHTTPalert4() {
  var xhttpalert4;
   try {   // The following "try" blocks get the XMLHTTP object for various browsers?
      xhttpalert4 = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xhttpalert4 = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
 		 // This block handles Mozilla/Firefox browsers...
	    try {
	      xhttpalert4 = new XMLHttpRequest();
	    } catch (e3) {
	      xhttpalert4 = false;
	    }
      }
    }
  return xhttpalert4; // Return the XMLHTTP object
}
