function makeSectionHeader(header)
{
   document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="sectionheader">' + header + '</td></tr></table>');
}

function makeHeader(header)
{
   document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="header">' + header + '</td></tr></table>');
}


function makePageHeader(header)
{
   document.write('<table cellpadding=0 cellspacing=0 border=0 width="100%">');
 document.write('<tr><td colspan=4 width="100%" class="pageheader">' + header + '</td></tr>');
 document.write('</table>');
}

function makeFormSectionHeader(header)
{
   document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="sectionheader">' + header + '</td></tr></table>');
}	

function newAlertWindow(msg) 
{
  var width=320;
  var height=145;
  var x = (screen.width - width) / 2;
  var y = (screen.height - height) / 2;

  if (IE) {		//NOTE: IE is defined in content_global.jsp
	  window.open("/include/confirm_win.jsp?"+"msg="+escape(msg), "alertwin",	"height=" + height + ", width=" + width + 	", left=" + x + ", top=" + y +	", resizable=no");
  } else {
	  window.open("/include/confirm_win.jsp?"+"msg="+escape(msg),  "alertwin", "height=" + height + ",width=" + width + ",screenX=" + x + ",screenY=" + y + ",resizable=no");
  }
} 

function newConfirmWindow(msg,submitformname)
{
  var width=320;
  var height=145;
  var x = (screen.width - width) / 2;
  var y = (screen.height - height) / 2;

  if (IE) {		//NOTE: IE is defined in content_global.jsp
	  window.open("/include/confirm_win.jsp?"+"msg="+escape(msg)+"&submitformname="+escape(submitformname), "confirmwin",	"height=" + height + ", width=" + width +	", left=" + x + ", top=" + y +	", resizable=no");
  } else {
	  window.open("/include/confirm_win.jsp?"+"msg="+escape(msg)+"&submitformname="+escape(submitformname), "confirmwin", "height=" + height + ",width=" + width + ",screenX=" + x + ",screenY=" + y + ",resizable=no");
  }
}         

function newStayingConfirmWindow(msg,submitformname)
{
  var width=320;
  var height=145;
  var x = (screen.width - width) / 2;
  var y = (screen.height - height) / 2;

  if (IE) {		//NOTE: IE is defined in content_global.jsp
	  window.open("/include/confirm_win.jsp?"+"msg="+escape(msg)+"&submitformname="+escape(submitformname) + "&stay=true", "confirmwin",	"height=" + height + ", width=" + width +	", left=" + x + ", top=" + y +	", resizable=no");
  } else {
	  window.open("/include/confirm_win.jsp?"+"msg="+escape(msg)+"&submitformname="+escape(submitformname) + "&stay=true", "confirmwin", "height=" + height + ",width=" + width + ",screenX=" + x + ",screenY=" + y + ",resizable=no");
  }
}         


