// pop-up "what They Sez" window -- kf 8/14/01

var theySezWindow;
function makeWhatTheySezWindow()
	{
	if (!theySezWindow || theySezWindow.closed)
		{
		poph = 335;
		popw = 485;
	  aw = screen.availWidth;
	  ah = screen.availHeight;
		theySezWindow = window.open("","","status,height="+poph+",width="+popw+",left="+aw)
		theySezWindow.blur()
		// move the theySezWindow to the center of the screen
		if (window.screen)
			{
			ah = (ah-poph)/2;
			aw = (aw-popw)/2;
		  theySezWindow.moveTo(aw, ah); // move it to the center (behind the parent window)
			}
		if (!theySezWindow.opener)
			{
			theySezWindow.opener = window
			}
		// assemble content
		var newContent = "<HTML><HEAD><TITLE>What You Sez...</TITLE></HEAD>"
		newContent += "<BODY BGCOLOR=\"#ffffff\" TEXT=\"#4b78f0\" BACKGROUND=\"http://www.adagebooks.com/ADBimages/ADBbg.gif\">"
		newContent += "<FORM METHOD=\"POST\" ACTION=\"http://www.adagebooks.com/newbin/formmail.pl\" ENCTYPE=\"x-www-form-encoded\">"
		newContent += "<INPUT TYPE=\"hidden\" NAME=\"redirect\" VALUE=\"http://www.adagebooks.com/Support/thankyou-2.html\">"
		newContent += "<INPUT TYPE=\"hidden\" NAME=\"recipient\" VALUE=\"Bubba@adagebooks.com\"><INPUT TYPE=\"hidden\" NAME=\"email\" VALUE=\"orders@adagebooks.com\">"
		newContent += "<INPUT TYPE=\"hidden\" NAME=\"subject\" VALUE=\"what They Sez...\">"
		newContent += "<FONT face=\"arial\"><P>Your <strong>eMail</strong> address...</P><P><CENTER><INPUT TYPE=\"text\" NAME=\"Address\" SIZE=\"25\" MAXLENGTH=\"60\"></CENTER></P>"
		newContent += "<P>What <strong>You</strong> Sez...</P><P></P><CENTER><TEXTAREA NAME=\"what You Sez\" COLS=\"40\" Rows=\"6\"></TEXTAREA></P>"
		newContent += "<P align=\"center\"><INPUT NAME=\":\" TYPE=\"submit\" VALUE=\"Send\"><INPUT NAME=\"Clear\" TYPE=\"reset\" VALUE=\"Clear\">"
		newContent += "<br><br><a href=\"javascript:window.close()\" ONMOUSEOVER=\"window.status=''; return true;\"><img src=\"../ADBimages/CloseMe.gif\" border=\"0\"></a></CENTER></P></FONT></BODY></HTML>"

		// write HTML to new window document
		theySezWindow.document.write(newContent)
		theySezWindow.document.close() // close layout stream
		theySezWindow.focus() //pop it to the front
		theySezWindow.defaultStatus = '';
		} 
	else
		{
		// window is already open -- bring it to the front
		theySezWindow.focus()
		}
	}

