<?Php
ob_start();
session_start();
include ("config.php"); 
/* require ($Lib."convertglobalvar.php"); */
require ($Lib."message.php");//NEW ADD
include ($Lib."connectdb.php"); 
include ("site_db_config.php")

?>

<link rel="stylesheet" type="text/css" href="css.css">
<table width="740" border="0" align="center" cellpadding="0" cellspacing="1" >
  <tr> 
    <td>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
        <tr> 
          <td height="26" colspan="2"> <div align="center"> 
              <?
					if(session_is_registered('Cust_Userid'))
					{
							include "header_cust.php";
					}elseif(session_is_registered('Part_Userid'))
					{
							include "header_part.php";
					}else
					{
							include "header.php";
					}										
		      ?>
            </div></td>
        </tr>
        <tr> 
          <td width="602"  height="26" valign="top" bgcolor="#FFFFFF" ><br> 
		  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
              <tr> 
                <td height="50" ><div align="center">
                  <br>  <?php 
			if(isset($file))
			{
					$incfile = "$file.php";
					if(!file_exists($incfile))	
					{	
							header("location: unauthorized.php");
							exit; 
					}
			}else
			{
					$incfile = "home.php";
			}
			require_once("$incfile");
		?>  <br>
                   </div></td>
              </tr>
            </table>
            <br> </td>
          <td width="138" height="26" valign="top" style="background: #828A9F url(images/one_white.gif) repeat-x bottom;" >
              <table width="138" border="0" align="center" cellpadding="0" cellspacing="0"  >
                <tr> 
                  <td width="138" bgcolor="#FFFFFF" > 
                      <?php include "left.php" ?>
                   </td>
                </tr>
              </table>
          	<p>&nbsp;</td>
        </tr>
        <tr> 
          <td height="18" colspan="2"> <div align="center"> 
              <?
				include("footer.php");
				ob_end_flush();	
		?>
            </div></td>
        </tr>
      </table>
      </td>
  </tr>
</table>
