<?
session_start();
$brcode = $_SESSION['brcode'];
$user = $_SESSION['user'];
if(strlen($brcode)<=0)
{
 	print "<script> alert('Session timed out'); parent.document.location='../index.php'; </script>";
	return;
}
?>
<SCRIPT>
parent.main.document.location="../blank.html";
</script>
<link rel="stylesheet" href="../css/left.css" type="text/css" />
<base target=main>
<body topmargin="5" leftmargin="0" link=black vlink=black>
<center>
<font  size=4 face=sans-serif><b>SPARES SALES</font><hr>

<table cellspacing=1 cellpadding=1 width=97%>
<!--
<tr ><td>&nbsp;&nbsp;<a href="transout.php">Trans against Order</a></td></tr>
--> 
<?
if($user=='sanile')
{?>
<tr ><td>&nbsp;&nbsp;<a href="invindex1.html">Warr.Order</a></td></tr>
<tr ><td>&nbsp;&nbsp;<a href="wspareinvoice.php" target='x'>Warr.Sale</a></td></tr>

<?
}
else
{
?>

<tr ><td>&nbsp;&nbsp;<a href="newspare.php">Sale Order</a></td></tr>
<tr ><td>&nbsp;&nbsp;<a href="srepopending.php">Pending Saleorder Report - Order Wise</a></td></tr>

<tr ><td>&nbsp;&nbsp;<a href="dup.php" target='m'>Pending Saleorder Report - Customer Wise</a></td></tr>

<tr ><td>&nbsp;&nbsp;<a href="availper.php" target='m'>Stock availability %</a></td></tr>

<tr ><td>&nbsp;&nbsp;<a href="spareinvoice.php" target='x'>Sale</a></td></tr>

<?
if($user=='sanile')
{?>
<?
}
?>


<?
if($brcode=='ERA153')
{?>
<tr ><td>&nbsp;&nbsp;<a href="spareinvfoc.php" target='x'>FOC Sale </a></td></tr>
<?
}
?>

<tr ><td>&nbsp;&nbsp;<a href="salereturn.php" target='m'>Sales Return</a></td></tr>
<tr ><td>&nbsp;&nbsp;<a href="sreturn_old1.php" target='m2'>Sales Return Old</a></td></tr>

<tr ><td>&nbsp;&nbsp;<a href="salereturnjc.php" target='m'>Sales Return (JC)</a></td></tr>
<tr ><td>&nbsp;&nbsp;<a href="salereturnjcold.php" target='m'>Sales Return Old(JC)</a></td></tr>

<tr ><td>&nbsp;&nbsp;<a href="closedsale.php" target='m'>Closed Saleorder Report </a></td></tr>

<tr ><td>&nbsp;&nbsp;<a href="invsum.php" target='m'>Invoice Summary</a></td></tr>

<tr ><td>&nbsp;&nbsp;<a href="../sparemnu.php" onClick=fun1()><- Back</a></td></tr>

<tr ><td>&nbsp;&nbsp;<a href="invindex1.html">Warr.Order</a></td></tr>
<tr ><td>&nbsp;&nbsp;<a href="wspareinvoice.php" target='x'>Warr.Sale</a></td></tr>
<tr ><td>&nbsp;&nbsp;<a href="invindex2.html">Transfer Order</a></td></tr>
<tr ><td>&nbsp;&nbsp;<a href="transoutnew.php" target='x'>Transfer Out</a></td></tr>

<?
}
?>
</table>
<script>
function fun1()
{
 document.location='../sparemnu.php';
}
</script>
