<!-- hide script ---
// Feedback window, a popup window that users can evaluate the
// javascript quizzes during the debug process
//
// Global - so there is only one Feedback window
var newFBWin = null

function newFBWindow(pageName) {
  var params = "";

// all possible window feature options for reference
//  params += "toolbar,location,directories,status,menubar,scrollbars,resizable,copyhistory,width=500,height=500"; 

  params += "status,resizable,width=600,height=600";
  newFBWin = window.open("","Feedback", params)
  if(newFBWin != null)
  {
    var newContent = "<html><head><title>Feedback</title></head>";
    newContent += "<body>";
    
    newContent += "<H2>Feedback form</H2>Please complete the following form to help debug the ";
    newContent += "<FONT COLOR=\"#3333FF\">"+pageName+"</FONT> javascript quiz.";

    newContent += "<FORM NAME=myForm ACTION=\"http://www.guitarland.com/CGI/FeedbackMail.cgi\" METHOD=\"POST\">";

    // name of page of which your are receiving feedback
    newContent += "<INPUT TYPE=\"hidden\" NAME=\"pageName\" VALUE=\""+pageName+"\">";

    // list  of OS
	newContent += "<SELECT NAME=\"OS\">\n<OPTION VALUE=blank>select OS\n<OPTION VALUE=Win98>Windows98\n<OPTION VALUE=WinNT>WindowsNT\n"
    newContent += "<OPTION VALUE=WinXP>WindowsXP\n<OPTION VALUE=MacOS9>MacOS9\n<OPTION VALUE=MacOSX>MacOSX</SELECT>\n";
    newContent += "<BR>Other OS:<INPUT TYPE=\"text\" NAME=\"otherOS\" SIZE=40><BR>";
    
    // list  of browser
    newContent += "<HR><SELECT NAME=\"browser\">\n<OPTION VALUE=blank>select browser\n<OPTION VALUE=MSIE5.0>MSIE 5.0\n<OPTION VALUE=MSIE5.1>MSIE 5.1\n";
    newContent += "<OPTION VALUE=MSIE5.5>MSIE 5.5\n<OPTION VALUE=Net4.x>Netscape 4.x\n<OPTION VALUE=Net6.x>Netscape6.x"
    newContent += "<OPTION VALUE=Net7.x.5>Netscape 7.x\n</SELECT>\n";
    newContent += "<BR>Other browser:<INPUT TYPE=\"text\" NAME=\"otherBrower\" SIZE=40><BR>";

    // feedback comments
    newContent += "<P><H2>Additional Comments</H2>";
    newContent += "<TEXTAREA NAME=\"Comments\" COLS=70 ROWS=20>"
    newContent += "Did the quiz evaluate your answers correctly?\n\n\n\n"
    newContent += "Did a new question automatically display when you closed the answer window?\n"
    newContent += "</TEXTAREA><BR>";

	// submit button
    newContent += "<INPUT TYPE=\"submit\" VALUE=\"submit feedback\">";

    newContent += "</FORM></body></html>"
    newFBWin.document.write(newContent);
    newFBWin.document.close();
  }
}

function closeFBWindow() {
  if(newFBWin != null)
    newFBWin.close()
}

function focusFBWindow() {
  if(newFBWin != null)
    newFBWin.focus()
}  
// ---- end script -->

