function GetComic(str,jump,replace,altid,mode)
{
	if (str=="")
	{
		//document.getElementById("txtHint").innerHTML="";
		return;
	}
	if (window.XMLHttpRequest)
	{
		// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	} else {
		// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
		//if (xmlhttp.readyState==4 && xmlhttp.status==200)
		// {
		// document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
		//}
	}
	var alttext = "";
	var modetext = "";
	if (altid)
	{
		alttext = "&alt="+altid;
	}
	if ((mode)&&(mode!="")){
		modetext = "mode="+mode+"&";
	}
	// Change the Comic
	xmlhttp.open("GET","includes/comic_ajax.php?"+modetext+"comic="+str+alttext,false);
	xmlhttp.send();
	document.getElementById("comic").innerHTML=xmlhttp.responseText;

	// Stickyscroll for Alt Comic list
	$(document).ready(function() {
		$('#comic_altlist').stickyScroll({ mode: 'auto', container: '#comic_image'});
	});
	$(document).ready(function() {
		$('#comic_infobox').stickyScroll({ mode: 'auto', container: '#comic_image'});
	});
	
	// For replacing URLs
	if (replace){
		// Change the current URL
		history.replaceState(history.state,"Sara and David - Issue "+str,"index.php?"+modetext+"comic="+str+alttext);
		// Change URL for Comic Menu
		document.getElementById("menu_comic").setAttribute('href','index.php?comic='+str+alttext);						// Comic address
		document.getElementById("menu_comic_story").setAttribute('href','index.php?mode=story&comic='+str+alttext);	// Story-Only address
	}
	if ((jump) && (jump != false))
		document.location.hash = "comic";
}
