// JavaScript Document
var objekxhr;
function ambildata(nama) {
    buatxhr();
	if(nama=="Jovan Fentury"){objekxhr.open("GET", "/commic/jovan.html");}
	if(nama=="Richard Audi Pangow"){objekxhr.open("GET", "/commic/richard.html");}
	if(nama=="Ardian Galuh Saputra"){objekxhr.open("GET", "/commic/ardian.html");}
	if(nama=="Benedictus Yanuar Adi"){objekxhr.open("GET", "/commic/benedictus.html");}
	if(nama=="Canggih Wiguna"){objekxhr.open("GET", "/commic/canggih.html");}
	if(nama=="Edy Setiawan Wijaya"){objekxhr.open("GET", "/commic/edy.html");}	
	if(nama=="Gregorius Ignatius Michaey"){objekxhr.open("GET", "/commic/gregorius.html");}
	if(nama=="Handy Wahyu Budi Wibowo"){objekxhr.open("GET", "/commic/handy.html");}
	if(nama=="Jacqueline"){objekxhr.open("GET", "/commic/jacqueline.html");}
	if(nama=="Ken"){objekxhr.open("GET", "/commic/ken.html");}
	if(nama=="Mei"){objekxhr.open("GET", "/commic/mei.html");}
	if(nama=="Thomas Nugroho Utama"){objekxhr.open("GET", "/commic/thomas.html");}
	if(nama=="Tjiuw Robin"){objekxhr.open("GET", "/commic/robin.html");}
	if(nama=="Yeni - koichichan's diary"){objekxhr.open("GET", "/commic/yeni.html");}
	if(nama=="Yessy"){objekxhr.open("GET", "/commic/yessy.html");}
	if(nama=="Yohan Angjaya -journey-to-the-north"){objekxhr.open("GET", "/commic/yohan.html");}
	if(nama=="Yonatan Dariko"){objekxhr.open("GET", "/commic/dariko.html");}
	objekxhr.send(null);
	objekxhr.onreadystatechange=tampilkan;
}
function buatxhr() {
    if (window.ActiveXObject) {
        objekxhr = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        objekxhr = new XMLHttpRequest();
    } else {
	alert("Segara ganti browser anda, browser ini tidak support Ajax");
	}
}
function tampilkan(){
	document.getElementById("comic").innerHTML = objekxhr.responseText;
}  
