function SwapImage(ImageTag, ImageSource)
	{
		ImageTag.src = ImageSource
	}
	
function GetHeader(VisibilityParameter, User)
	{
		if (window.location.href.indexOf('Print=Yes') > 0)
			{
				return;
			} 
		document.write('<MAP name=Header><AREA shape=RECT coords=6,16,216,48 ');
		document.write('  href="http://www.e-schedulesolutions.com"></MAP><map name=ContactUsEmail><area shape=RECT coords=21,73,212,85 ');
		document.write('href="mailto:info@e-schedulesolutions.com"></map>');
		document.write('			<!--');
		document.write('');
		document.write('************************************************************************************************************************');
		document.write('-->');
		document.write('<table cellSpacing=0 cellPadding=0 width=760 align=left bgColor=#dfe0e4 border=0>');
		document.write('<!--');
		document.write('*************************************************************************************************************************');
		document.write('		HEADER');
		document.write('************************************************************************************************************************');
		document.write('-->');
		document.write('  <tr vAlign=bottom height=71>');
		document.write('    <td width=760 bgColor=#a2bacb colSpan=4><IMG src="../Images/Header.gif" useMap=#Header border=0 ></td></tr>');
		document.write('  <tr vAlign=top>');
		document.write('					');
		document.write('<!--');
		document.write('*************************************************************************************************************************');
		document.write('		Menu');
		document.write('************************************************************************************************************************');
		document.write('-->');
		document.write('    <td width=150 background="../Images/Bar2.gif">');
		document.write('      <table class=menu align=right>');
		document.write('        <tr>');
		document.write('          <td align=left><a href="../Default.aspx?Logout=True"><img border=0 src="../Images/LogOut.gif"></a>');
		if (User != '')
			{
				document.write('<br><font size=2 color=#a2bacb><strong>You are logged in as ' + User + '</strong></font>');
			}
		document.write('</td>');
		document.write('          <td></td></tr>');
		document.write('        <tr height=20>');
		document.write('        	<td></td>');
		document.write('			<td>');
		document.write('			</td>');
		document.write('		</tr>');
		document.write('        <TR>');
		document.write('          <td align=right><a href="../Users/RequestShiftsUI.aspx"><IMG onmouseover="SwapImage(this,\'../Images/RequestShiftsButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/RequestShiftsButton.gif\')" src="../Images/RequestShiftsButton.gif" border=0 ></a></td>');
		document.write('          <td width=10></td></TR>');
		document.write('        <TR>');
		document.write('          <td align=right><a href="../Users/ScheduleUI.aspx"><IMG onmouseover="SwapImage(this,\'../Images/ViewScheduleButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/ViewScheduleButton.gif\')" src="../Images/ViewScheduleButton.gif" border=0 ></a></td>');
		document.write('          <td width=10></td></TR>');
		document.write('	    <tr>');
		document.write('          <td align=right><a href="../Users/ChangeMyInfo.aspx"><IMG onmouseover="SwapImage(this,\'../Images/ChangePasswordButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/ChangePasswordButton.gif\')" src="../Images/ChangePasswordButton.gif" border=0 ></a></td>');
		document.write('          <td width=10></td>');
		document.write('        </tr>');
		if (VisibilityParameter == 'True')
			{
				document.write('        <tr>');
				document.write('			<td align=right><img src="../Images/AdministrativeControls.gif">');
				document.write('			</td>');
				document.write('        </tr>');
				document.write('	    <tr>');
				document.write('          <td align=right><a href="../Admins/GettingStartedUI.aspx"><IMG onmouseover="SwapImage(this,\'../Images/GettingStartedButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/GettingStartedButton.gif\')" src="../Images/GettingStartedButton.gif" border=0 ></a></td>');
				document.write('          <td width=10></td>');
				document.write('        </tr>');				
				document.write('	    <tr>');
				document.write('          <td align=right><a href="../Admins/UsersUI.aspx"><IMG onmouseover="SwapImage(this,\'../Images/UsersButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/UsersButton.gif\')" src="../Images/UsersButton.gif" border=0 ></a></td>');
				document.write('          <td width=10></td>');
				document.write('        </tr>');				
				document.write('	    <tr>');
				document.write('          <td align=right><a href="../Admins/SeniorityUI.aspx"><IMG src="../Images/SeniorityButton.gif" border=0 ></a></td>');
				document.write('          <td width=10></td>');
				document.write('        </tr>');
				document.write('	    <tr>');
				document.write('          <td align=right><a href="../Admins/ReportsUI.aspx"><IMG onmouseover="SwapImage(this,\'../Images/ReportsButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/ReportsButton.gif\')" src="../Images/ReportsButton.gif" border=0 ></a></td>');
				document.write('          <td width=10></td>');
				document.write('        </tr>');
				document.write('	    <tr>');
				document.write('          <td align=right><a href="../Admins/ShiftTemplatesUI.aspx"><IMG onmouseover="SwapImage(this,\'../Images/ShiftTemplatesButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/ShiftTemplatesButton.gif\')" src="../Images/ShiftTemplatesButton.gif" border=0 ></a></td>');
				document.write('          <td width=10></td>');
				document.write('        </tr>');
				document.write('	    <tr>');
				document.write('          <td align=right><a href="../Admins/ShiftsUI.aspx"><IMG onmouseover="SwapImage(this,\'../Images/ShiftsButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/ShiftsButton.gif\')" src="../Images/ShiftsButton.gif" border=0 ></a></td>');
				document.write('          <td width=10></td>');
				document.write('        </tr>        ');
				document.write(' 	    <tr>');
				document.write('          <td align=right><a href="../Admins/LocationsUI.aspx"><IMG onmouseover="SwapImage(this,\'../Images/LocationsButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/LocationsButton.gif\')" src="../Images/LocationsButton.gif" border=0 ></a></td>');
				document.write('          <td width=10></td>');
				document.write('        </tr>       ');
				document.write(' 	    <tr>');
				document.write('          <td align=right><a href="../Admins/JobTypesUI.aspx"><IMG onmouseover="SwapImage(this,\'../Images/JobTypesButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/JobTypesButton.gif\')" src="../Images/JobTypesButton.gif" border=0 ></a></td>');
				document.write('          <td width=10></td>');
				document.write('        </tr>       ');
				document.write(' 	    <tr>');
				document.write('          <td align=right><a href="../Admins/Algorithm.aspx"><IMG onmouseover="SwapImage(this,\'../Images/GenerateScheduleButtonRollover.gif\')" onmouseout="SwapImage(this,\'../Images/GenerateScheduleButton.gif\')" src="../Images/GenerateScheduleButton.gif" border=0 ></a></td>');
				document.write('          <td width=10></td>');
				document.write('        </tr>');
			}
		document.write('	</table>');
		document.write('	</td>');
		document.write('    <td vAlign=top align=left width=10><IMG src="../Images/TopLeftCorner.gif" ></td>');
		document.write('    <td vAlign=top align=left width=570>');
	}
	
function GetFooter()
	{
		if (window.location.href.indexOf('Print=Yes') > 0)
			{
				window.print();
				window.close();
			} 	
		else
			{
				document.write('    </td>');
				document.write('    <td vAlign=top align=right width=10><IMG src="../images/TopRightCorner.gif" ></td></tr>');
				document.write('  <tr vAlign=top align=center>');
				document.write('    <td width=150 background=Images/Bar2.gif></td>');
				document.write('					<!--');
				document.write('*************************************************************************************************************************');
				document.write('		CONTENT');
				document.write('************************************************************************************************************************');
				document.write('-->');
				document.write('	<td width=610 colSpan=3></td></tr>');
				document.write('  <tr>');
				document.write('    <td width=150 background="../Images/Bar2.gif"></td>');
				document.write('    <td vAlign=bottom align=left><IMG src="../Images/BottomLeftCorner.gif"></td>');
				document.write('    <td><font face=Arial color=#9F9D9D size=1> ');
				document.write('      &nbsp; &#169; 2006 <a href="http://www.bytesizedsolutions.com" target="_blank"><font color=#9F9D9D>Byte Sized Solutions.</font></a> All Rights ');
				document.write('      Reserved. &nbsp; <a href="../TermsOfUse.aspx" target="_blank"><font face=Arial ');
				document.write('      color=#9F9D9D size=1>Terms of Use</font></a>.</font> ');
				document.write('    </td>');
				document.write('		<td valign=bottom align=right><img src="../Images/BottomRightCorner.gif"></td></tr>');
				document.write('	<tr height="100%">');
				document.write('		<td height=500 colspan=4><img src="../Images/FooterBackground.gif" height=100% width=100%></td>');
				document.write('	</tr>       ');
				document.write('        ');
				document.write('      </table>');	
			}
	}
	
function GetUnauthenticatedHeaderStart()
	{
		document.write('<MAP name=Header><AREA shape=RECT coords=6,16,216,48 ');
		document.write('  href="http://www.e-schedulesolutions.com"></MAP><map name=ContactUsEmail><area shape=RECT coords=21,73,212,85 ');
		document.write('href="mailto:info@e-schedulesolutions.com"></map>');
		document.write('			<!--');
		document.write('');
		document.write('************************************************************************************************************************');
		document.write('-->');
		document.write('<table cellSpacing=0 cellPadding=0 width=760 align=left bgColor=#dfe0e4>');
		document.write('<!--');
		document.write('*************************************************************************************************************************');
		document.write('		HEADER');
		document.write('************************************************************************************************************************');
		document.write('-->');
		document.write('  <tr vAlign=bottom height=71>');
		document.write('    <td width=760 bgColor=#a2bacb colSpan=4><IMG src="Images/Header.gif" useMap=#Header border=0 ></td></tr>');
		document.write('  <tr vAlign=top>');
		document.write('					');
		document.write('<!--');
		document.write('*************************************************************************************************************************');
		document.write('		Menu');
		document.write('************************************************************************************************************************');
		document.write('-->');
		document.write('    <td width=150 background=Images/Bar2.gif>');
		document.write('      <table class=menu align=right>');
		document.write('        <tr>');
		document.write('          <td align=left>');
	}	

function GetUnauthenticatedHeaderEnd()
	{
		document.write('          </td>');
		document.write('        </tr>');
		document.write('	</table>');
		document.write('	</td>');
		document.write('    <td vAlign=top align=left width=10><IMG src="Images/TopLeftCorner.gif" ></td>');
		document.write('    <td vAlign=top align=left width=570>');
	}	

function GetUnauthenticatedFooter()
	{
		document.write('    </td>');
		document.write('    <td vAlign=top align=right width=10><IMG src="images/TopRightCorner.gif" ></td></tr>');
		document.write('  <tr vAlign=top align=center>');
		document.write('    <td width=150 background=Images/Bar2.gif></td>');
		document.write('					<!--');
		document.write('*************************************************************************************************************************');
		document.write('		CONTENT');
		document.write('************************************************************************************************************************');
		document.write('-->');
		document.write('	<td width=610 colSpan=3></td></tr>');
		document.write('  <tr>');
		document.write('    <td width=150 background=Images/Bar2.gif></td>');
		document.write('    <td vAlign=bottom align=left><IMG src="Images/BottomLeftCorner.gif" ></td>');
		document.write('    <td><font face=Arial color=#9F9D9D size=1 ');
		document.write('      >&nbsp; &#169; 2006 <a href="http://www.bytesizedsolutions.com" target="_blank"><font color=#9F9D9D>Byte Sized Solutions.</font></a> All Rights ');
		document.write('      Reserved. &nbsp; <a href="TermsOfUse.aspx" target="_blank"><font face=Arial ');
		document.write('      color=#9F9D9D size=1>Terms of Use</font></a>.</font> ');
		document.write('    </td>');
		document.write('		<td valign=bottom align=right><img src="Images/BottomRightCorner.gif"></td></tr>');
		document.write('	<tr height="100%">');
		document.write('		<td height=500 colspan=4><img src=Images/FooterBackground.gif height=100% width=100%></td>');
		document.write('	</tr>       ');
		document.write('        ');
		document.write('      </table>');	
	}