function WriteContent(ImageSrc, Caption, IHeight, WHeight, IWidth, WWidth, BGColor,FntColor) {

	var browser= (n && parseFloat(navigator.appVersion)>=4.07)

	textWindow=window.open("/lib/blank.html","textWindow","width=" + WWidth + ",height=" + WHeight + "\",resizable=yes,scrollbars=auto");
	textWindow.document.writeln("<HTML>")
	textWindow.document.writeln("<HEAD>")
	textWindow.document.writeln("<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"/lib/pagestyle.css\">")
	var n = ((document.layers) && (parseFloat(navigator.appVersion) >= 4.07) && (parseFloat(navigator.appVersion) < 5)) ? 1:0;
	if (n == false) {
		textWindow.document.writeln("<STYLE>")
		textWindow.document.writeln("body { margin-top : 10px; }")
		textWindow.document.writeln("</STYLE>")
	}
	textWindow.document.writeln("</HEAD>")
	textWindow.document.writeln("<BODY BGCOLOR=\"" + BGColor + "\" MARGINHEIGHT=\"6\" MARGINWIDTH=\"8\" LEFTMARGIN=\"2\" TOPMARGIN=\"3\">")
	textWindow.document.writeln("<DIV ALIGN=\"center\"><IMG SRC=\"" + ImageSrc + "\" HEIGHT=\"" + IHeight + "\" WIDTH=\"" + IWidth + "\" BORDER=0></DIV><BR>")
	textWindow.document.writeln("<DIV CLASS=\"Caption\"><FONT COLOR=\"" + FntColor + "\">" + Caption + "</FONT></DIV>")
	textWindow.document.writeln("</BODY>")
	textWindow.document.writeln("</HTML>")
	textWindow.document.close()
	setTimeout('textWindow.focus();',250);

	if (n == true) {
		myImage = new Image()
		myImage.src = ImageSrc
		setTimeout('NSDisplay();',1000);
	}
}

function NSDisplay() {
textWindow.document.images[0].src = myImage.src
}

function strEncode(str){ return escape(str) }

function ListenUp(Artist, SongTitle) {
Artist = strEncode(Artist)
SongTitle = strEncode(SongTitle)
EarsRinging=window.open('/ringing.asp?Artist=' + Artist + '&SongTitle=' + SongTitle,'EarsRinging','scrollbars=yes,width=300,height=150')
EarsRinging.focus()
}

