// This script is copyright protected  Dial-log
//document.onselectstart = function() {return false;};

function _DW(item)
{
	document.write(item);
};

function openBodyTable()
{
	_DW('<table class=\"btable\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#000033\">');
	_DW('<tr><td>');
};

function closeBodyTable()
{
	_DW('</td></tr>');
	_DW('</table>');
};

function setPgHead(type)
{
	_DW('<table class=\"htable\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#000033\">');
	_DW('	<tr>');
	_DW('		<td width=\"15%\" valign=\"middle\" align=\"center\" height=\"61\">');
//	_DW('		<img border=\"0\" src=\"images/1a.gif\" width=\"49\" height=\"43\" alt=\"\">');
	_DW('		</td>');
	_DW('		<td width=\"85%\" height=\"61\">');
	_DW('		<p align=\"center\" style=\"margin-top: -7\"><font face=\"Times New Roman\" size=\"6\" color=\"#FFFFFF\"><i>');
//	_DW('		<br>');
	if (type == 0)
		{ _DW('Dial-Log Software and Support</font></i>'); }
	if (type == 1)
		{ _DW('\'Dial-Log\'&nbsp;- Call Accounting</font></i>'); }
	if (type == 2)
		{ _DW('\'Private Area\'&nbsp;- MLS Software</font></i>'); }
	_DW('		</p>');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('</table>');
}

function setMainMenu()
{
	_DW('<div id=\"leftcontent\">');
	_DW('<table cellpadding=\"0\" cellspacing=\"0\">');
	_DW('	<tr>');
	_DW('		<td width=\"100%\" valign=\"top\" align=\"center\">');
	_DW('			<img border=\"0\" src=\"images/C01H0005a.jpg\" width=\"132\" height=\"140\" alt=\"\">');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('	<tr><td>&nbsp;</td></tr>');
	_DW('	<tr>');
	_DW('		<td align=\"center\">');
	_DW('		<div id=\"navcontainer\">');
	_DW('		<ul id=\"navlist\">');

	_DW('		<li><a href=\"dlg_main.htm\"><p>Dial-Log</p></a></li>');
	_DW('		<li id=\"blank\"></li>');
	_DW('		<li><a href=\"mls_main.htm\"><p>PA-Mls</p></a></li>');

	_DW('		</ul>');
	_DW('		</div>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('	<tr>');
	_DW('		<td width=\"100%\" align=\"center\">');
	_DW('		<p><br><br><br><br><br><br><br><br><br>')
//	_DW('		<a href=\"http://validator.w3.org/check?uri=referer\">');
	_DW('		<img src=\"images/valid-html401.png\" alt=\"Valid HTML 4.01 Transitional\" height=\"31\" width=\"88\" border=\"0\">');
	_DW('		</td>');
	_DW('		</p>');
	_DW('	</tr>');

	_DW('</table>');
	_DW('</div>');
};

function setDlgMenu(item)
{
	_DW('<div id=\"leftcontent\">');
	_DW('<table cellpadding=\"0\" cellspacing=\"0\">');
	_DW('	<tr>');
	_DW('		<td width=\"100%\" valign=\"top\" align=\"center\">');
	_DW('			<img border=\"0\" src=\"images/C01H0005a.jpg\" width=\"132\" height=\"140\" alt=\"\">');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('	<tr><td>&nbsp;</td></tr>');
	_DW('	<tr>');
	_DW('		<td align=\"center\">');
	_DW('		<div id=\"navcontainer\">');
	_DW('		<ul id=\"navlist\">');

	_DW('<li><a href=\"index.htm\"><p>Home</p></a></li>');

	if (item == 1)
		{ _DW('<li id=\"active\"><p>Dial-Log Main</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_main.htm\"><p>Dial-Log Main</p></a></li>'); }
 
	if (item == 2)
		{ _DW('<li id=\"active\"><p>Business</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_business.htm\"><p>Business</p></a></li>'); }

	if (item == 3)
		{ _DW('<li id=\"active\"><p>Hotel / Motel</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_hotel.htm\"><p>Hotel / Motel</p></a></li>'); }

	if (item == 4)
		{ _DW('<li id=\"active\"><p>Suite / Studio</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_suite.htm\"><p>Suite / Studio</p></a></li>'); }

	if (item == 5)
		{ _DW('<li id=\"active\"><p>Equipment</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_equip.htm\"><p>Equipment</p></a></li>'); }

	if (item == 6)
		{ _DW('<li id=\"active\"><p>Pricing</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_pricing.htm\"><p>Pricing</p></a></li>'); }

	if (item == 7)
		{ _DW('<li id=\"active\"><p>Info Request</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_info.htm\"><p>Info Request</p></a></li>'); }

	if (item == 8)
		{ _DW('<li id=\"active\"><p>Sample Reports</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_rept1.htm\"><p>Sample Reports</p></a></li>'); }

	if (item == 9)
		{ _DW('<li id=\"active\"><p>Unlock Code</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_unlock1.htm\"><p>Unlock Code</p></a></li>'); }

	_DW('<li id=\"blank\">&nbsp;</li>');

	if (item == 10)
		{ _DW('<li id=\"active\"><p>Contact Us</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_contact.htm\"><p>Contact Us</p></a></li>'); }

	_DW('		</ul>');
	_DW('		</div>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('	<tr>');
	_DW('		<td width=\"100%\" align=\"center\">');
	_DW('		<p><br><br><br><br>');
//	_DW('		<a href=\"http://validator.w3.org/check?uri=referer\">');
	_DW('		<img src=\"images/valid-html401.png\" alt=\"Valid HTML 4.01 Transitional\" height=\"31\" width=\"88\" border=\"0\">');
	_DW('		</td>');
	_DW('		</p>');
	_DW('	</tr>');

//	_DW('	<tr>');
//	_DW('		<td height=\"100%\">&nbsp;</td>');
//	_DW('	</tr>');

	_DW('</table>');
	_DW('</div>');
};

function setMlsSysMenu(item)
{
	_DW('<div id=\"leftcontent\">');
	_DW('<table cellpadding=\"0\" cellspacing=\"0\" width="100%">');
	_DW('	<tr>');
	_DW('		<td width=\"100%\" valign=\"top\" align=\"center\">');
	_DW('			<img border=\"0\" src=\"images/C01H0005a.jpg\" width=\"132\" height=\"140\" alt=\"\">');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('	<tr><td>&nbsp;</td></tr>');

	if (item == -2)
		{
	_DW('	<tr>');
	_DW('		<td>&nbsp;</td>');
	_DW('	</tr>');
	_DW('</table>');
	_DW('</div>');
		return;
		}

	_DW('	<tr>');
	_DW('		<td align=\"center\">');
	_DW('		<div id=\"navcontainer\">');
	_DW('		<ul id=\"navlist\">');

	_DW('<li><a href=\"index.htm\"><p>Home</p></a></li>');

	if (item == 1)
		{ _DW('<li id=\"active\"><p>Login</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_syst_login.php\"><p>Login</p></a></li>'); }

	if (item == 2)
		{ _DW('<li id=\"active\"><p>Browse</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_syst_brws.php\"><p>Browse</p></a></li>'); }

	if (item == 3)
		{ _DW('<li id=\"active\"><p>Logout</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_syst_logout.php\"><p>Logout</p></a></li>'); }

	_DW('		</ul>');
	_DW('		</div>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('	<tr>');
	_DW('		<td width=\"100%\" align=\"center\">');
	_DW('		<p><br><br><br><br>');
//	_DW('		<a href=\"http://validator.w3.org/check?uri=referer\">');
	_DW('		<img src=\"images/valid-html401.png\" alt=\"Valid HTML 4.01 Transitional\" height=\"31\" width=\"88\" border=\"0\">');
	_DW('		</td>');
	_DW('		</p>');
	_DW('	</tr>');

	_DW('</table>');
	_DW('</div>');
};

function setDlgSysMenu(item, ZID)
{
	_DW('<div id=\"leftcontent\">');
	_DW('<table cellpadding=\"0\" cellspacing=\"0\" width="100%">');
	_DW('	<tr>');
	_DW('		<td width=\"100%\" valign=\"top\" align=\"center\">');
	_DW('			<img border=\"0\" src=\"images/C01H0005a.jpg\" width=\"132\" height=\"140\" alt=\"\">');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('	<tr><td>&nbsp;</td></tr>');

	if (item == -2)
		{
	_DW('	<tr>');
	_DW('		<td>&nbsp;</td>');
	_DW('	</tr>');
	_DW('</table>');
	_DW('</div>');
		return;
		}

	_DW('	<tr>');
	_DW('		<td align=\"center\">');
	_DW('		<div id=\"navcontainer\">');
	_DW('		<ul id=\"navlist\">');

	_DW('<li><a href=\"index.htm\"><p>Home</p></a></li>');

	_DW('<li id=\"blank\">&nbsp;</li>');

	if (item == 1)
		{ _DW('<li id=\"active\"><p>Login</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_syst_login.php\"><p>Login</p></a></li>'); }

	_DW('<li id=\"blank\">&nbsp;</li>');

	if (item == 2)
		{ _DW('<li id=\"active\"><p>Browse</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_syst_brws.php?ID=');
		  _DW(ZID);
		  _DW('\"><p>Browse</p></a></li>'); }

	_DW('<li id=\"blank\">&nbsp;</li>');

	if (item == 4)
		{ _DW('<li id=\"active\"><p>Build Dial-Log</p></li>'); }
	else
		{ _DW('<li><a href=\"build_diallog1.php?ID=');
		  _DW(ZID);
		  _DW('\"><p>Build Dial-Log</p></a></li>'); }

	_DW('<li id=\"blank\">&nbsp;</li>');

	if (item == 3)
		{ _DW('<li id=\"active\"><p>Logout</p></li>'); }
	else
		{ _DW('<li><a href=\"dlg_syst_logout.php?ID=');
		  _DW(ZID);
		  _DW('\"><p>Logout</p></a></li>'); }

	_DW('		</ul>');
	_DW('		</div>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('	<tr>');
	_DW('		<td width=\"100%\" align=\"center\">');
	_DW('		<p><br><br><br><br>');
//	_DW('		<a href=\"http://validator.w3.org/check?uri=referer\">');
	_DW('		<img src=\"images/valid-html401.png\" alt=\"Valid HTML 4.01 Transitional\" height=\"31\" width=\"88\" border=\"0\">');
	_DW('		</td>');
	_DW('		</p>');
	_DW('	</tr>');

	_DW('</table>');
	_DW('</div>');
};

function setMlsMenu(item)
{
	_DW('<div id=\"leftcontent\">');
	_DW('<table cellpadding=\"0\" cellspacing=\"0\">');
	_DW('	<tr>');
	_DW('		<td width=\"100%\" valign=\"top\" height=\"140\">');
	_DW('        <p align=\"center\">');
	_DW('			<img border=\"0\" src=\"images/C01H0005a.jpg\" width=\"132\" height=\"140\" align=\"center\" alt=\"\">');
	_DW('			 </p>');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('	<tr><td>&nbsp;</td></tr>');
	_DW('	<tr>');
	_DW('		<td align=\"center\">');
	_DW('		<div id=\"navcontainer\">');
	_DW('		<ul id=\"navlist\">');

	_DW('<li><a href=\"index.htm\"><p>Home</p></a></li>');

	if (item == 1)
		{ _DW('<li id=\"active\"><p>PA-Mls Main</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_main.htm\"><p>PA-Mls Main</p></a></li>'); }

	if (item == 2)
		{ _DW('<li id=\"active\"><p>Capabilities</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_capabilities.htm\"><p>Capabilities</p></a></li>'); }

	if (item == 3)
		{ _DW('<li id=\"active\"><p>Equipment</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_equip.htm\"><p>Equipment</p></a></li>'); }

	if (item == 4)
		{ _DW('<li id=\"active\"><p>Sample Screen 1</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_scr1.htm\"><p>Sample Screen 1</p></a></li>'); }

	if (item == 5)
		{ _DW('<li id=\"active\"><p>Sample Screen 2</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_scr2.htm\"><p>Sample Screen 2</p></a></li>'); }

	if (item == 6)
		{ _DW('<li id=\"active\"><p>Pricing</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_pricing.htm\"><p>Pricing</p></a></li>'); }

	if (item == 7)
		{ _DW('<li id=\"active\"><p>Info Request</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_info.htm\"><p>Info Request</p></a></li>'); }

	if (item == 8)
		{ _DW('<li id=\"active\"><p>Unlock Code</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_unlock1.htm\"><p>UnLock Code</p></a></li>'); }

	_DW('<li id=\"blank\">&nbsp;</li>');

	if (item == 9)
		{ _DW('<li id=\"active\"><p>Contact Us</p></li>'); }
	else
		{ _DW('<li><a href=\"mls_contact.htm\"><p>Contact Us</p></a></li>'); }

	_DW('		</ul>');
	_DW('		</div>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('	<tr>');
	_DW('		<td width=\"100%\" align=\"center\">');
	_DW('		<p><br><br><br><br>');
//	_DW('		<a href=\"http://validator.w3.org/check?uri=referer\">');
	_DW('		<img src=\"images/valid-html401.png\" alt=\"Valid HTML 4.01 Transitional\" height=\"31\" width=\"88\" border=\"0\">');
	_DW('		</td>');
	_DW('		</p>');
	_DW('	</tr>');

	_DW('</table>');
	_DW('</div>');
};

function setStyle(sel)
{
_DW('<style>');
_DW('body \{ margin-top: 0; margin-left: 0; font-size: 15px; font-family: verdana, arial, serif; background-color: #ffffff; color: #000000; text-align: left; \}');

_DW('.para1 \{ text-indent: 12px; margin-top: 4px; margin-left: 4px; \}');
_DW('.para2 \{ text-indent: 12px; margin-left: 4px; \}');
_DW('.para3 \{ margin-left: 44px; \}');

_DW('#leftcontent \{ font-size: 14px; float: left; width: 165px; \}');

_DW('#leftcontent p \{ font-size: 15px; \}');
_DW('#rightcontent \{ font-size: 15px; float: left; width: 745px;\}');
_DW('#rightcontent p \{ font-size: 15px; \}');
_DW('.smallfonta \{ font-size: 14px; line-height: 14pt; \}');
_DW('.smallfontb \{ font-size: 14px; line-height: 11pt; \}');

_DW('.notshow \{ visibility: hidden; \}');

_DW('.htable \{ width: 100%; \}');
_DW('.btable \{ width: 100%; \}');

_DW('.ptable \{ width: 910; \}');

_DW('#navcontainer \{width: 165px; \}');

_DW('#navcontainer ul \{margin-left: 0; padding-left: 0; list-style-type: none; font-family: verdana, arial, serif; \}');

_DW('#navcontainer p \{margin-top: 6 \}');

_DW('#navcontainer a \{display: block; text-align: center; width: 155px; background-color: #000033; color: #ffffff; font-family: verdana, arial, serif; font-weight: bold; font-size: 14px; height: 34px; border-top: #f5f5f5 2px solid; border-left: #f5f5f5 2px solid; border-right: #bbbbbb 2px solid; border-bottom: #bbbbbb 2px solid; \}');

_DW('#navcontainer a:link \{background-color: #000033; color: #EEE; text-decoration: none; \}');

_DW('#navlist a:visited \{background-color: #000033; color: #EEE; text-decoration: none; \}');

_DW('#active \{color: #cccc00; display: block; text-align: center; width: 155px; background-color: #000033; font-family: verdana, arial, serif; font-weight: bold; font-size: 14px; height: 34px; font-style: italic; \}');

_DW('#blank \{color: #cccc00; display: block; text-align: center; width: 155px; background-color: #000033; font-family: verdana, arial, serif; font-size: 4px; height: 6px; \}');

_DW('#navcontainer a:hover \{background-color: #000033; color: #cccc00; font-size: 15px; \}');

_DW('</style>');

if (sel == 1)
	{
	_DW('<script>');
	_DW('document.onselectstart = function() {return false;};');
	_DW('</script>');
	}
};

