function showShoutbox() {
	var x=-30;
	var y=-60;
	if (document.layers) {
		x=x+(window.outerWidth-150)/2;
		y=y+(window.outerHeight-300)/2;
	} else {
		x=x+(screen.Width-150)/2;
		y=y+(screen.Height-300)/2;
	}
	if (x<0) x=0;
	if (y<0) y=0;
	var w=window.open("http://68760.myshoutbox.com/?extcss=http://www.applegeeks.com/css/talkback.css","Talkback","top="+y+",left="+x+",width=250,height=500,location=0,menubar=0,toolbar=0,status=0,resizable=0,scrollbars=1");
	w.focus();
	return;
}

function view(id) {
	var x=-30;
	var y=-60;
	if (document.layers) {
		x=x+(window.outerWidth-612)/2;
		y=y+(window.outerHeight-792)/2;
	} else {
		x=x+(screen.Width-612)/2;
		y=y+(screen.Height-792)/2;
	}
	if (x<0) x=0;
	if (y<0) y=0;
	var w=window.open("/comic_archive/view.php?issue="+id,"View","top="+y+",left="+x+",width=612,height=792,location=0,menubar=0,toolbar=0,status=0,resizable=1,scrollbars=1");
	w.focus();
	return;
}

function viewRant(id) {
	var x=-30;
	var y=-60;
	if (document.layers) {
		x=x+(window.outerWidth-612)/2;
		y=y+(window.outerHeight-792)/2;
	} else {
		x=x+(screen.Width-612)/2;
		y=y+(screen.Height-792)/2;
	}
	if (x<0) x=0;
	if (y<0) y=0;
	var w=window.open("/blog_archive/view.php?id="+id,"View","top="+y+",left="+x+",width=500,height=500,location=0,menubar=0,toolbar=0,status=0,resizable=0,scrollbars=1");
	w.focus();
	return;
}

function showtext(thetext) { 	 	
	document.getElementById("toggle").innerHTML = thetext; 
}

function checkForm(form) {
	if(form.name.value == '') {
	  alert('You must specify your name.');
	  
	  return false;
	} else if(form.email.value == '') {
	  alert('You must specify your email.');
	  
	  return false;
	} else if(form.title.value == '') {
	  alert('You must specify a title.');
	  
	  return false;
	} else if(form.rant.value == '') {
	  alert('You must enter a rant.');
	  
	  return false;
	}
	
	return true;
}

function SetEmo(emo){document.SB.text.value+=''+emo;document.SB.text.focus();}
function cleanit(thefield){if(thefield.defaultValue==thefield.value){thefield.value="";};}
function openWin(tURL,winName,attr){window.open(tURL,winName,attr);}
function submitit(name){if (document.all||document.getElementById){for(i=0;i<name.length;i++){var tempobj=name.elements[i];if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset"){tempobj.disabled=true;};};};}
function doBlink(){var blink=document.all.tags("BLINK");for(var i=0;i<blink.length;i++){blink[i].style.visibility=blink[i].style.visibility==""?"hidden":"";};}
function initBlink(){if(document.all){setInterval("doBlink()",550);};}
function stoperror(){return true;}
function delmake(entryip,tstamp){var ip='66.88.179.84'; if((ip==entryip)&&(tstamp>1072749900)){document.write("<BR>[ <A HREF='./?f=d&mid="+tstamp+"&LANG=US&css=&extcss='>delete</A> ]");};}
window.onerror=stoperror;

function checkForm(form) {
    if(form.title.value == '') {
      alert('You must specify a title.');
      
      return false;
	}
    
    return true;
  }

function refreshTalkBack() {   
	window.frames['talkback'].location.href = "http://68760.myshoutbox.com/?extcss=http://www.applegeeks.com/css/talkback.css";
} 
