function showCover(id, gm) {
 window.open("cover.php?id="+id+(gm == true ? "&isgrim=true" : ""), "cover"+id, 'fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=20,height=20,left=0,top=0');
}
function promptFor(w) {
	var tarea = document.all.tarea;
	var txt = tarea.value;
	if(w=="lnk") {
		var lnk=prompt("Enter www address to add.", "http://");
		if(lnk!=""&&lnk!="http://") {
		  var lnktitle=prompt("Enter the address title.","");
		  txt+="[LINK";
		  if(lnktitle!=""&&lnktitle!=lnk)
			txt+="="+lnktitle;
		  txt+="]"+lnk+"[/LINK]";
		  tarea.value=txt;

		}
	}
	if(w=="eml") {
		var eml=prompt("Enter email address to add.","");
		if(eml!="") {
		  txt+="[EMAIL="+eml+"]";
		  tarea.value=txt;
		}
	}

	if (w=="bld") {
		var bld=prompt("Enter the text to make bold.","");
		if(bld!="") {
		  txt+="[B]"+bld+"[/B]";
		  tarea.value=txt;
		}
	}
	if (w=="itl") {
		var itl=prompt("Enter the text to make italic.","");
		if(itl!="") {
		  txt+="[I]"+itl+"[/I]";
		  tarea.value=txt;
		}
	}
	if (w=="udl") {
		var udl=prompt("Enter the text to make underlined.","");
		if(udl!="") {
		  txt+="[U]"+udl+"[/U]";
		  tarea.value=txt;
		}
	}
	if (w=="img") {
		var img=prompt("Enter URL for the image to add.", "http://");
		if(img!=""&&img!="http://") {
		  txt+="[IMG="+img+"]";
		  tarea.value=txt;
		}
	}
	tarea.focus();
   }