var needToConfirm = true;
  window.onbeforeunload = confirmExit;
  function confirmExit()
  {
    if (needToConfirm)
      	//Open a modal window populated with the contents of a hidden DIV, and assign the result to a global variable called "exitwindow"
		exitwindow=dhtmlmodal.open('exitwindow', 'div', 'exit_form', 'fields' , 'width=450px,height=100px,center=1,resize=0,scrolling=1')	
  return;
  }


document.write("<div id=\"exit_form\" style=\"display:none\">");
document.write("<table width=\"300\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"list2\">");
document.write("  <tr>");
document.write("    <td width=\"65\" align=\"center\" valign=\"middle\"><img src=\"..\/images\/questionmark_orange.png\" width=\"64\" height=\"64\" \/><br \/>");
document.write("      <\/td>");
document.write("    <td width=\"225\" align=\"center\"><p>");
document.write("      <label class=\"label_std\">Don't leave!!.<\/label><br \/>");
document.write("      <label class=\"label_std\">Please stay.<\/label><br \/>");
document.write("      <label class=\"label_std\"><\/label><br \/>");
document.write("    <\/td>");
document.write("  <\/tr>");
document.write("  <tr>");
document.write("    <td height=\"45\" colspan=\"2\" align=\"center\"><br \/>");
document.write("      <input name=\"input\" type=\"submit\" class=\"imagebutton\" onClick=\" needToConfirm = false; MM_goToURL('parent',_referpage);return document.MM_returnValue\" value=\"Yes\"  \/>");
document.write("      <input name=\"button\" type=\"button\" class=\"imagebutton\" id=\"button\" onClick=\"parent.exitwindow.hide()\"  value=\"No\" \/>");
document.write("    <\/td>");
document.write("  <\/tr>");
document.write("<\/table>");
document.write("<\/div>");
