function printWindow()
{
   self.name = "Parent_Window";

   var new_window = "menubar,scrollbars,resizable,width=640,height=500,left=25,top=25";
   var current_url = document.location.href;
   var current_hash = document.location.hash;
   if (current_url.indexOf("#") !== -1) {
      current_url = current_url.substr(0, current_url.indexOf("#"));
   }
   if(current_url.indexOf("?") !== -1){
      current_url = current_url + "&pf=1";
   }
   else {
      current_url = current_url + "?pf=1";
   }
   current_url = current_url + current_hash;
   OpenWindow = window.open(current_url, "remote", new_window);
}

function redesignPopup()
{
   self.name = "Redesign_Popup";

   var loc = window.location.protocol + "//" + window.location.host + window.location.pathname;
   var locPopup = "/accounting/redesign_leave.php?loc=" + loc;
   var popup = window.open(locPopup, "Feedback",
                           "location=no,menubar=no,resizable=yes,scrollbars=yes,"+
                           "status=no,width=800,height=600");
   if(popup == NULL || typeof(popup) == "undefined") {
      //they blocked it, so show alert box
      alert("We have revised the look and feel of our accounting website and " +
                  "reorganized the way we present our content to make it easier for you " +
                  "to sign up, study for, and <b>PASS<\/b> your CPA, CIA, CMA, " +
                  "or EA Exams.<br>We ask that you please provide your " +
                  "comments/suggestions by emailing us at " +
                  "redesignFeedback@gleim.com");
   }
   else popup.focus();
}

function setFocus()
{
   if (emailForm = document.getElementById("email")) {
      emailForm.focus();
   }
}

