function showTop(document)
{
	document.writeln("<body>");
	document.writeln("<table style=\"width: 100%; height: 100%\;\" align=\"left\" valign=\"top\" rowpadding=\"0\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" hspace=\"0\" vspace=\"0\">");
	document.writeln("  <tbody>");
	document.writeln("    <tr>");
	document.writeln("      <td style=\"background-color: rgb(157, 157, 145)\;\" #ffffff=\" \" align=\"right\" height=\"25\">");
	document.writeln("      <table style=\"width: 100%\; height: 100%\;\" rowpadding=\"0\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.writeln("        <tbody>");
	document.writeln("          <tr>");
	document.writeln("            <td style=\"width: 180px;\"> </td>");
	document.writeln("            <td style=\"vertical-align: middle;\">");
	document.writeln("            	<a style=\"font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(255, 255, 255);\" href=\"./privacy.htm\">Privacy Policy</a>");
	document.writeln("            </td>");
	document.writeln("            <td style=\"vertical-align: middle; text-align: right;\">");
	document.writeln("            	<a style=\"font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(255, 255, 255);\">Solutions &amp; Services Created Specifically For The Education Community </a>");
	document.writeln("            </td>");
	document.writeln("            <td style=\"width: 80px; vertical-align: middle; text-align: right;\">");
	document.writeln("            	<img src=\"./BANNER_TP.gif\">");
	document.writeln("            </td>");
	document.writeln("          </tr>");
	document.writeln("        </tbody>");
	document.writeln("      </table>");
	document.writeln("      </td>");
	document.writeln("    </tr>");
	document.writeln("    <tr>");
	document.writeln("      <td valign=\"top\">");
	document.writeln("      <table rowpadding=\"0\" style=\"height: 100%;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">");
	document.writeln("        <tbody>");
	document.writeln("          <tr>");
	document.writeln("            <td align=\"left\" valign=\"top\">");
	showNav(document);
	document.writeln("            </td>");
	document.writeln("            <td align=\"left\" valign=\"top\" width=\"100%\">");
	document.writeln("            <table style=\"width: 100%; height: 100%;\" valign=\"middle\" rowpadding=\"0\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.writeln("              <tbody>");
	document.writeln("                <tr>");
	document.writeln("                  	<td style=\"vertical-align: middle; height: 35px; text-align: right; background-color: rgb(255, 236, 184);\">");
	document.writeln("			<a style=\"font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(157, 157, 145);\"> </a>");
	document.writeln("		</td>");
	document.writeln("		<td style=\"vertical-align: middle; height: 35px; text-align: right; background-color: rgb(255, 236, 184);\">");
	document.writeln("			<img style=\"border: 0px solid ;\" src=\"./HelpIcon.gif\"></img>");
	document.writeln("                  	</td>");
	document.writeln("                </tr>");
	document.writeln("                <tr>");
	document.writeln("			<td width=200 style=\"text-align: center\" >");
	document.writeln("				<H2>Welcome</H2>");
	document.writeln("			</td>");
	document.writeln("                  	<td style=\"vertical-align: bottom; text-align: right; background-color: rgb(255, 255, 255);\">");
	document.writeln("				<img style=\"border: 0px solid ; height: 61px;\" src=\"./Banner_RT.gif\">");
	document.writeln("                  	</td>");
	document.writeln("                </tr>");
	document.writeln("                <tr>");
	document.writeln("			<td colspan=2 style=\"vertical-align: middle; height: 30px; text-align: right; background-color: rgb(255, 225, 155);\"></td>");
	document.writeln("                </tr>");
	document.writeln("                <tr>");
	document.writeln("			<td colspan=2 style=\"height: 100%; background-color: rgb(255, 255, 255); text-align: center; vertical-align: middle;\">");
	document.writeln("				<table style=\"width: 500px; height: 200px; text-align: left;\" align=\"center\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\">");
	document.writeln("					<tbody>");
	document.writeln("						<tr height=\"40\">");
	document.writeln("						</tr>");
	document.writeln("						<tr>");
}

function showAutoOptions(document, source, debug, version)
{
	showTop(document);
	document.writeln("					<td colspan=2 align=\"center\" height=\"25\">");
	document.writeln("					</td>");
	document.writeln("				</tr>");
	document.writeln("				<tr>");
	document.writeln("					<td colspan=\"3\" width=\"100%\" height=\"50\" align=\"center\">");
	document.writeln("						<font size=\"+1\" color=\"#000080\">Preparing to launch " + cp_prod_name + "...</font>");
	document.writeln("					</td>");
	document.writeln("				</tr>");
	document.writeln("				<tr>");
	document.writeln("					<td align=\"center\" height=\"50\">");
	document.writeln("					</td>");
	document.writeln("					<td align=\"center\">");
	document.writeln("					</td>");
	document.writeln("				</tr>");
	document.writeln("				<tr>");
	document.writeln("					<td align=\"center\">");
	document.writeln("						<font color=\"#000080\">You may close this window once the login screen appears</font>");
	document.writeln("					</td>");
  	document.writeln("				</tr>");
  	document.writeln("				<tr height=\"130\">");
	showBottom(document);
}

function showBottom(document)
{
	document.writeln("						</tr>");
	document.writeln("						<tr height=\"30\">");
	document.writeln("						</tr>");
	document.writeln("					</tbody>");
	document.writeln("                  			</table>");
	document.writeln("                  		</td>");
	document.writeln("                </tr>");
	document.writeln("                <tr>");
	document.writeln("			<td style=\"text-align: center; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;\">");
	document.writeln("			</td>");
	document.writeln("                </tr>");
	document.writeln("              </tbody>");
	document.writeln("            </table>");
	document.writeln("            </td>");
	document.writeln("          </tr>");
	document.writeln("        </tbody>");
	document.writeln("      </table>");
	document.writeln("      </td>");
	document.writeln("    </tr>");
	document.writeln("  </tbody>");
	document.writeln("</table>");
	document.writeln("</body>");
}

function showProcessing(document, source, debug, version)
{
	var parms = "?source=" + source + "&debug=" + debug + "&version=" + version;

	showTop(document);
	document.writeln("					<td colspan=2 align=\"center\" height=\"25\">");
	document.writeln("					</td>");
	document.writeln("				</tr>");
	document.writeln("				<tr>");
	document.writeln("					<td colspan=\"3\" width=\"100%\" height=\"50\" align=\"center\">");
	document.writeln("						<font size=\"+1\" color=\"#000080\">Now launching " + cp_prod_name + "...</font>");
	document.writeln("					</td>");
	document.writeln("				</tr>");
	document.writeln("				<tr>");
	document.writeln("					<td align=\"center\" height=\"50\">");
	document.writeln("					</td>");
	document.writeln("					<td align=\"center\">");
	document.writeln("					</td>");
	document.writeln("				</tr>");
	document.writeln("				<tr>");
	document.writeln("					<td align=\"center\">");
	document.writeln("						<font color=\"#000080\">You may close this window once the login screen appears</font>");
	document.writeln("					</td>");
  	document.writeln("				</tr>");
  	document.writeln("				<tr height=\"130\">");
	showBottom(document);
}

function showOptions(document, source, debug, version)
{
	var parms = "?source=" + source + "&debug=" + debug + "&version=" + version;

	showTop(document);
  	document.writeln("					<td colspan=2 align=\"center\">");
  	document.writeln("						<h4>Please select the client option you would like to use</h4>");
  	document.writeln("					</td>");
  	document.writeln("				</tr>");
  	document.writeln("				<tr>");
  	document.writeln("	  			 	<td colspan=\"2\" width=\"100%\" height=\"50\">");
  	document.writeln("					</td>");
  	document.writeln("				</tr>");
  	document.writeln("				<tr>");
  	document.writeln("					<td align=\"center\">");
  	document.writeln("						<a href=\"" + aso_page + parms + "\" name=\"Windows Only\" title=\"Windows Only\"><img src=\"WinXP.gif\"/></a>");
  	document.writeln("					</td>");
  	document.writeln("					<td align=\"center\">");
  	document.writeln("						<a href=\"" + jso_page + parms + "\" name=\"Windows Only\" title=\"Windows Only\"><img src=\"MacOSX.gif\" /></a>");
  	document.writeln("						or");
  	document.writeln("						<a href=\"" + jso_page + parms + "\" name=\"Windows Only\" title=\"Windows Only\"><img src=\"WinXP.gif\"/></a>");
  	document.writeln("					</td>");
  	document.writeln("				</tr>");
  	document.writeln("				<tr>");
  	document.writeln("					<td align=\"center\">");
  	document.writeln("						<a href=\"" + aso_page + parms + "\" name=\"Windows Only\" title=\"Windows Only\">Windows Only</a>");
  	document.writeln("					</td>");
  	document.writeln("					<td align=\"center\">");
  	document.writeln("						<a href=\"" + jso_page + parms + "\" name=\"WindowsorMac\" title=\"Mac or Windows\">Windows or Mac</a>");
  	document.writeln("					</td>");
  	document.writeln("				</tr>");
  	document.writeln("				<tr height=\"130\">");
	showBottom(document);
}

function showContent(document)
{
	showTop(document);
	document.writeln("					<td colspan=2 align=\"center\" height=\"25\">");
	document.writeln("					</td>");
	document.writeln("				</tr>");
	document.writeln("				<tr>");
	document.writeln("					<td colspan=\"3\" width=\"100%\" height=\"50\" align=\"center\">");
	document.writeln("						<font size=\"+1\" color=\"#000080\">Now launching " + cp_prod_name + "...</font>");
	document.writeln("					</td>");
	document.writeln("				</tr>");
	document.writeln("				<tr>");
	document.writeln("					<td align=\"center\" height=\"50\">");
	document.writeln("					</td>");
	document.writeln("					<td align=\"center\">");
	document.writeln("					</td>");
	document.writeln("				</tr>");
	document.writeln("				<tr>");
	document.writeln("					<td align=\"center\">");
	document.writeln("						<font color=\"#000080\">You may close this window once the login screen appears</font>");
	document.writeln("					</td>");
  	document.writeln("				</tr>");
  	document.writeln("				<tr height=\"130\">");
	showBottom(document);
}

function showNav(document)
{
	document.writeln("            <table style=\"height: 100%;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.writeln("              <tbody>");
	document.writeln("                <tr height=98px>");
	document.writeln("                  	<td style=\"text-align: left; vertical-align: top;\">");
	document.writeln("            		<img style=\"width: 178px; height: 85px;\" alt=\"CrossPointe Schools OnLine\" src=\"./logo.jpg\" align=\"top\">");
	document.writeln("            	</td>");
	document.writeln("                </tr>");
	document.writeln("                <tr height=100%>");
	document.writeln("                  <td style=\"text-align: center; vertical-align: middle; background-color: rgb(255, 236, 184);\"></td>");
	document.writeln("                </tr>");
	document.writeln("              </tbody>");
	document.writeln("            </table>");
}
