var http = false;

if(navigator.appName == "Microsoft Internet Explorer") {
  http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
  http = new XMLHttpRequest();
}

function getContent(kanal) {
  http.abort();
  http.open("GET", "/librari/ajax/ajax_welcome.php?kanal=" +kanal, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
   		document.getElementById('content').innerHTML = http.responseText; // Ini kalau untuk div
    }
  }
  http.send(null);
}
function trapError() {
	return true; // stop the yellow triangle
}
window.onerror = trapError;
