<!--

var menuStr = ["Material","Partner", "Employee", "User","Others", "Log Out"];
var linkStr = ["materialhistory","builderhistory","employeehistory","sysuserhistory","positionhistory"];


function getMenuonStr(menuId)
{
    var starStr = "<li>";
	var hrefStr = "<a href='" + linkStr[menuId] +".html'>";
	var endStr = "</a></li>";
	var menuonStr = starStr + hrefStr + menuStr[menuId] + endStr;

	return menuonStr;

}

function getMenudnStr(menuId)
{

    var starStr = "<li id='sitem'>";
	var hrefStr = "<a href='" + linkStr[menuId] +".html'>";
	var endStr = "</a></li>";
	var endStr = "</li>";
	var menudnStr = starStr + hrefStr + menuStr[menuId] + endStr;
	return menudnStr;

}


function PublicAreaHead(menuStr)
{
	
	document.write(" <body >");
	document.write(" <table cellspacing='0' cellpadding='0' border='0' id='mainwp'>");
  	document.write(" <tr align='left'>");
    document.write("   <td class='bg03'>&nbsp;</td>");
	document.write("   <td class='bg01' rowspan='2'><img src='../images/" + menuStr + ".gif'></td>");
	document.write("   <td class='w40' rowspan='2'>&nbsp;</td>");
	document.write("   <td rowspan='2' align='center' class='rtborder'><img src='../images/logo.png'></td></tr>");
  	document.write(" <tr align='left'>");
    document.write("   <td class='bg11' align='left'>");

}



function PublicAreaMenu()
{
	document.write("     <ul id='menu'>");
    document.write("       <li id='systemuser'><a href='../system/UserList.html' >System User</a></li>");
	document.write("	   <li id='configuration'><a href='../system/Parameters.html' >Configuration</a></li>");
	document.write("	   <li id='hr'><a href='../system/EmployeeList.html' >Human Resource</a></li>");
	document.write("	   <li id='sales'><a href='../system/CustomerList.html' >Sales Department</a></li>");
	document.write("	   <li id='password'><a href='../system/changepassword.html' >Change Password</a></li>");
    document.write("       <li id='logout'><a href='../login.html' >Log Out</a></li>");
	document.write("	   </ul>");

}


function PublicAreaMenuline()
{
	document.write("	</td></tr>");
	document.write("  <tr>");
	document.write("    <td colspan='4' height='6'><img src='../images/empty.gif'></td></tr>");

	document.write("  <tr align='left'>");
	document.write("    <td colspan='4'>");
	document.write("	  <table width='100%' cellspacing='0' cellpadding='0' border='0'>");
	document.write("	    <tr valign='top'>");
	document.write("		  <td align='center'width='20' rowspan='2' style='padding-top:42px;'><img src='../images/mdot.gif'></td>");
	document.write("	      <td class='bg05' style='padding-top:40px;'>");
}

function PublicAreaCenter()
{

    document.write("		<img src='images/empty.gif' width='1' height='100'><br><img src='../images/adminlogo.gif'><p class='loginfo'><span class='lblue'>Current User</span><br>Joe Woody</br></p><p class='loginfo'><span class='lblue'>Last Login Time</span><br>4/20/2007 20:24:20</br></p><p class='loginfo'><span class='lblue'><a href='../login.html'>Log Out</a></span></p></td>");
	document.write("		  <td width='10'>&nbsp;</td>");
	document.write("		  <td width='820' align='center' class='cframe' >");

}

function SysPublicAreaCenter()
{
	//document.write("		<img src='images/empty.gif' width='1' height='100'><br><img src='../images/purchlogo.gif'><p class='loginfo'><span class='lblue'>Current User</span><br>Joe Woody</br></p><p class='loginfo'><span class='lblue'>Last Login Time</span><br>4/20/2007 20:24:20</br></p></td>");
document.write("		<img src='images/empty.gif' width='1' height='100'><br><img src='../images/fieldlogo.gif'><br><br><p class='loginfo'><span class='lblue'>Current User</span><br>Joe Woody</br></p><p class='loginfo'><span class='lblue'>Last Login Time</span><br>4/20/2007 20:24:20</br></p></td>");
	document.write("		  <td width='10'>&nbsp;</td>");
	document.write("		  <td width='85%' align='center' class='cframe' >");

}



function PublicAreaFoot()
{

    document.write("      <td></tr>");
    document.write("    <tr> ");   
    document.write("      <td colspan='3' height='20' class='bg05' ></td></tr>");
    document.write("	  </table>");
    document.write("	</td></tr>  ");
    document.write("  <tr>");
    document.write("    <td colspan='4' class='bg08'><span class='copy' style='margin-left:170px;'>&copy; 2009 Farsighted Enterprise Inc.&nbsp;&nbsp;All Rights Reserved.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Powered by Microseven Systems, Inc.</span></td></tr>");
    document.write("</table>");
    document.write("</body>");
	document.write("</html>");
}

function PublicAreaFoot1()
{

	document.write("</td>");
	document.write("	   <td class='bgwhite' colspan='2'>&nbsp;</td></tr>");
	document.write("  <tr>");
	document.write("    <td colspan='4' class='bombg'><span class='mg20'>2006&copy;The Charcoal Master International Inc.  All Right Reserved.</span>  </td>");
	document.write("   </table>");
	document.write("</div>");
	document.write("</body>");
	document.write("</html>");
}



function InfoWindow_Open(theURL, winName) 
{ 
	window.open(theURL,winName,"height=800, width=1000, top=0, left=0,toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no");
}

-->

