// JavaScript Document

      // Get the HTTP Object
function getHTTPObject(){
	var xmlhttp;
	 
	  if(window.XMLHttpRequest){
		xmlhttp = new XMLHttpRequest();
	  }
	  else if (window.ActiveXObject){
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		if (!xmlhttp){
			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
	   
	}
	  return xmlhttp;
}

// Change the value of the outputText field
function setOutput(){
	if(httpObject.readyState == 4){
    	document.getElementById('homepagetext').innerHTML= httpObject.responseText;
    }
}
	  
function changeTextSize(ts,scr,rm){
	httpObject = getHTTPObject();

	if (httpObject != null) {
		httpObject.open("GET", "includes/homepagetext.php?textsize="+ts+"&"+scr+"="+scr+"&"+rm+"="+rm, true);
		scroll(0,0);
		httpObject.send(null);
		httpObject.onreadystatechange = setOutput;
	}
}