<!--

/* Forstorar text */
function resizeText(multiplier) {
  if (document.getElementById('ao1').style.fontSize == "") {
    document.getElementById('ao1').style.fontSize = "1.0em";
  }
  if (document.getElementById('ao2').style.fontSize == "") {
    document.getElementById('ao2').style.fontSize = "1.0em";
  }
  if (document.getElementById('ao3').style.fontSize == "") {
    document.getElementById('ao3').style.fontSize = "1.0em";
  }
  if (document.getElementById('ao4').style.fontSize == "") {
    document.getElementById('ao4').style.fontSize = "1.0em";
  }
  if((parseFloat((document.getElementById('ao1').style.fontSize)) + (multiplier * 0.20)>=1) && (parseFloat((document.getElementById('ao1').style.fontSize)) + (multiplier * 0.20)<=1.4)){
    document.getElementById('ao1').style.fontSize =  parseFloat(document.getElementById('ao1').style.fontSize) + (multiplier * 0.20) + "em";
    document.getElementById('ao2').style.fontSize =  parseFloat(document.getElementById('ao2').style.fontSize) + (multiplier * 0.20) + "em";
    document.getElementById('ao3').style.fontSize =  parseFloat(document.getElementById('ao3').style.fontSize) + (multiplier * 0.20) + "em";
    document.getElementById('ao4').style.fontSize =  parseFloat(document.getElementById('ao4').style.fontSize) + (multiplier * 0.20) + "em";
  }
}

/* Hämtar sök från google */
var ns6 = document.getElementById&&!document.all;

function getNewHttpObject(){
 var objType = false;
 try{
  objType = new ActiveXObject('Msxml2.XMLHTTP');
 }catch(e){
  try{
   objType = new ActiveXObject('Microsoft.XMLHTTP');
  }catch(e){
   objType = new XMLHttpRequest();
  }
 }
 return objType;
}

function getAXAH(url, elementContainer){
 document.getElementById(elementContainer).innerHTML = '<blink class="redtxt">Laddar...<\/blink>';
 var theHttpRequest = getNewHttpObject();
 theHttpRequest.onreadystatechange = function(){processAXAH(elementContainer);};
 theHttpRequest.open("GET", url);
 theHttpRequest.send(false);

 function processAXAH(elementContainer){
  if(theHttpRequest.readyState == 4){
   if(theHttpRequest.status == 200){
    document.getElementById(elementContainer).innerHTML = theHttpRequest.responseText;
   }else{
    document.getElementById(elementContainer).innerHTML="<p><span class='redtxt'>Error!<\/span> HTTP request return the following status message: " + theHttpRequest.statusText +"<\/p>";
   }
  }
 }
}

function updateSok(){
 var sok = ns6? document.getElementById("sok"): document.all["sok"];

 var menuobj = ns6? document.getElementById("writeroot"): document.all["writeroot"];
 menuobj.innerHTML = "";

 getAXAH('http://www.pedagogguiden.se/index_goggle.php?sok='+escape(sok.value),'writeroot');
}

function getHTTPObject() {
 var xmlhttp;
 /*@cc_on
 @if(@_jscript_version >= 5)
 try{
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 }catch(e){
  try{
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  }catch(E){
   xmlhttp = false;
  }
 }
 @else
 xmlhttp = false;
 @end @*/
 if(!xmlhttp && typeof XMLHttpRequest != 'undefined'){
  try{
   xmlhttp = new XMLHttpRequest();
  }catch(e){
   xmlhttp = false;
  }
 }
 return xmlhttp;
}

-->