// JavaScript Document : Menu
function fnprod()
{
	var str="";
	str+="<table border='0' cellpadding='0' cellspacing='0' idth='50%'><tr>";
	str+="<td width='14'></td><td align='center'><a href='#' onMouseOver='hideall();menu(0);' class='menu'>Product</a></td>";
	str+="</tr></table>";
	document.write(str);
}
function fnHeader()
	{
	var str="";
	str+=" <table cellpadding='0' cellspacing='0' border='0' width='98%' height='65' align='center'>";
	str+=" <tr>";
	str+="	 <td height='75'><img src='" + linkPath + "images/web_admin_logo.gif' border='0' width='51' height='67'  title='Custom Web Creations'></td>";
	str+="	 <td align='right'><img src='" + linkPath + "images/webcontrolpanel.gif' border='0' width='144' height='14'></td>";
	str+=" </tr>";
	str+=" </table>";
	document.write(str);
	}

function fnMenu()
	{
	var str="";
	str+="<table border=0 cellpadding=0 cellspacing=1 width=100% height=35 bgcolor='#FFFFFF'>";
	str+="	<tr class='menubg' hight=50%>";
	str+="	<td align=center width=13%><A href='" + linkPath + "home.asp' title='Main Menu' class='menu'>Main Menu</A></td>";
	str+="	<td align=center width=13%><A href='" + linkPath + "view_Category.asp' title='Category' class='menu'>Category</A></td>";	
	str+="	<td align=center width=13%><A href='" + linkPath + "view_SubCategory.asp' title='SubCategory' class='menu'>SubCategory</A></td>";		
	//str+="	<td align=center width=15%><A href='" + linkPath + "view_SubCategory_lvlone.asp' title='SubCategory Level One' class='menu'>SubCategory Level One</A></td>";
	str+="	<td align=center width=13%><A href='" + linkPath + "view_Product.asp' title='Product' class='menu'>Product</A></td>";	
	str+="	<td align=center width=13%><A href='" + linkPath + "dollarConversion.asp' title='Product' class='menu'>Dollar Rate</A></td>";		
	str+="	<td align=center width=12%><A href='" + linkPath + "CustomerDetails.asp?mode=view' title='Product' class='menu'>Customer Details</A></td>";		
	str+="	<td align=center width=12%><A href='" + linkPath + "changepassword.asp?mode=view' title='Change Password' class='menu'>Change Password</A></td>";
	str+="	<td align=center width=11%><A href='" + linkPath + "index.asp?mode=logoff' title='Log Out' class='menu'>Log Out</A></td>";
	
	str+="	</tr>"
	str+="	</table>";
	document.write(str);
	}

function hide(){
document.getElementById("tddiv").style.width="5";	
document.getElementById("tddiv").style.height="0";	
document.getElementById("bigdiv").style.display="none";
document.getElementById("smalldiv").style.display="block";
}
function show(){
document.getElementById("tddiv").style.width="200";	
document.getElementById("bigdiv").style.display="block";
document.getElementById("smalldiv").style.display="none";
}

function fnDivCheck()
	{	
	var val = tblView.offsetHeight;
	if (tblView.offsetHeight >= 350)  
		DivDisplay.style.overflow = "auto";
	else
		{
		DivDisplay.style.overflow = "hidden";
		DivDisplay.style.height = val;
		}
	}