
/////////////////////////////////////////////////////////////
//          Function Name: beginMainMenu
//          Author: Beena Shah
//          Purpose: This function Starts the table required for
//                   First Level Menus 
//          Parameters:
//
//          Create Date: 07 Feb 2006
//          Last Modified Date:
//          Modification History: Mahendra Bhatt
//          1.
//          2.
//          3.    
/////////////////////////////////////////////////////////////
function beginMainMenu()
{
document.write('<table id="MaintimizerMenu" cellpadding="0" cellspacing="0" border="0" align="center">');
document.write('<tr>');
}

/////////////////////////////////////////////////////////////
//          Function Name: endMainMenu
//          Author: Beena Shah
//          Purpose: This function End the table tag set for first
//                   Level Menus
//          Parameters:
//
//          Create Date: 07 Feb 2006
//          Last Modified Date:
//          Modification History: Mahendra Bhatt
//          1.
//          2.
//          3.    
/////////////////////////////////////////////////////////////

function endMainMenu()
{
document.write('</tr>');
document.write('</table>');
}

/////////////////////////////////////////////////////////////
//          Function Name: buildMainMenu
//          Author: Beena Shah
//          Purpose: This function Sets the individual item of first level
//
//          Parameters:
//          MenuNo=It is used to give id for the first level menu.Starts from 0
//          MenuItem=The Menu Name to be used
//          Href=The page name with the entire path.If no page to be called send "#"
//          ImgSrc=The image name with the path, which is to be used for first level menus
//
//          Create Date: 07 Feb 2006
//          Last Modified Date:
//          Modification History: Mahendra Bhatt
//          1.
//          2.
//          3.    
/////////////////////////////////////////////////////////////

function buildMainMenu(MenuNo,MenuItem,Href) {
//document.write('<td ondblclick="Menu_HoverStatic(this);" onmouseout="Menu_Unhover(this);" onkeyup="Menu_Key(this);" id="MaintimizerMenun');

var strSession = "document.getElementById(" + "'" + "ctl00_HdnCheckMenu" + "'" +  ").value"
document.write('<td  onmouseout="Menu_Unhover(this);" onkeyup="Menu_Key(this);" id="MaintimizerMenun');
document.write(MenuNo);
document.write('">');
document.write('<table cellpadding="2" cellspacing="10" border="0" width="100%">');
document.write('<tr>');
document.write('<td style="white-space:nowrap; padding-right:10px;">');
document.write('<a class="dynamenu" onclick="javascript:Menu_HoverStatic(this);" ');
document.write('href=');
document.write(Href);
document.write('>'); 
document.write(MenuItem);
document.write('</a>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');


//var strSession = "document.getElementById(" + "'" + "ctl00_HdnCheckMenu" + "'" +  ").value"
//document.write('<tr>');
//document.write('<td  onmouseout="Menu_Unhover(this);" onkeyup="Menu_Key(this);" id="MaintimizerMenun');
//document.write(MenuNo);
//document.write('">');
//document.write('<table cellpadding="1" cellspacing="7" border="1" width="100%">');
//document.write('<tr>');
//document.write('<td style="white-space:nowrap; padding-right:50px;">');
//document.write('<a class="dynamenu" onclick="javascript:Menu_HoverStatic(this);" ');
//document.write('href=');
//document.write(Href);
//document.write('> '); 
//document.write(MenuItem);
//document.write('</a>');
//document.write('</td>');
//document.write('</tr>');
//document.write('</table>');
//document.write('</td>');
//document.write('</tr>');

}

/////////////////////////////////////////////////////////////
//          Function Name: beginSubMenu
//          Author: Beena Shah
//          Purpose: This function Starts the div tag for all the submenus 
//                   under the mainmenu
//
//          Parameters:
//          MainMenuNo=The no under which sub menus to be added.
//
//          Create Date: 07 Feb 2006
//          Last Modified Date:
//          Modification History: Mahendra Bhatt
//          1.
//          2.
//          3.    
/////////////////////////////////////////////////////////////

function beginSubMenu(MainMenuNo)
{
document.write('<div id="MaintimizerMenun');
document.write(MainMenuNo);
document.write('Items" class="aspnet_s0"> ');
document.write('<table border="0" cellpadding="0" cellspacing="0">');
}

/////////////////////////////////////////////////////////////
//          Function Name: endSubMenu
//          Author: Beena Shah
//          Purpose: This function Ends the div tag for all the submenus 
//                   under the mainmenu
//
//          Parameters:
//          MainMenuNo=The no under which sub menus to be added.
//
//          Create Date: 07 Feb 2006
//          Last Modified Date:
//          Modification History: Mahendra Bhatt
//          1.
//          2.
//          3.    
/////////////////////////////////////////////////////////////

function endSubMenu(MainMenuNo)
{
document.write('</table>');
document.write('<div class="aspnet_s4 aspnet_s0" id="MaintimizerMenun');
document.write(MainMenuNo);
document.write('ItemsUp"');
document.write('onmouseover=PopOut_Up(this) style="TEXT-ALIGN: center" onmouseout=PopOut_Stop(this)>');
document.write('<img src="/Web/img/uparrow.gif" alt="Scroll up" />');
document.write('</div>');
document.write('<div class="aspnet_s4 aspnet_s0" id="MaintimizerMenun');
document.write(MainMenuNo);
document.write('ItemsDn"');
document.write('onmouseover="PopOut_Down(this);" onmouseout="PopOut_Stop(this);" style="TEXT-ALIGN: center">');
document.write('<img src="/Web/img/downarrow.gif" alt="Scroll up" />');
document.write('</div>');
document.write('</div>');
}

/////////////////////////////////////////////////////////////
//          Function Name: buildSubMenu
//          Author: Beena Shah
//          Purpose: This function Sets the individual item of sub menu.
//
//          Parameters:
//          MainMenuNo=It is the main menu under which submenu to be added.
//          SubMenuNo=It is used to give id for the sub menu under main menu . Starts from 0
//          MenuItem=The Menu Name to be used
//          Href=The page name with the entire path.If no page to be called send "#"
//          HaveSubMenus=Use 'Y' or 'y' if the submenu have more sub menu under it
//                       , so a arrow image can be added.
//
//          Create Date: 07 Feb 2006
//          Last Modified Date:
//          Modification History: Mahendra Bhatt
//          1.
//          2.
//          3.    
/////////////////////////////////////////////////////////////

function buildSubMenu (MainMenuNo,SubMenuNo,MenuItem,Href,HaveSubMenus){

var strHref
strHref = "'" + Href + "'"
document.write('<tr style="HEIGHT: 1px" ><td></td></tr>');
document.write('<tr onmouseover="Menu_HoverDynamic(this);" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this);" id="MaintimizerMenun');
document.write(MainMenuNo);
document.write(SubMenuNo);
document.write('">');
document.write('<td>');
document.write('<table class="aspnet_s4" cellpadding="0" cellspacing="0" border="0" width="100%">');
document.write('<tr>');
document.write('<td class="aspnet_s3" style="white-space:nowrap;width:100%;" onclick="javascript:navigate('+strHref+');">');
document.write('<a class="aspnet_s3" href="#">');
//alert(abc);
//if(OpenScreenNW==1)
//{
//document.write('javascript:OpenNewWindow("');
//document.write(Href);
//document.write('");>');
//}
//else
//{
//document.write(Href);
//document.write('>');
//}
//document.write('<%if Session("OpenScreenNWFlag")=True then%>');
//document.write('<%End if%>');
document.write(MenuItem);
document.write('</a>');
document.write('</td>');
if (HaveSubMenus=='Y' || HaveSubMenus=='y')
{
document.write('<TD style="WIDTH: 0px">');
document.write('<IMG style="VERTICAL-ALIGN: middle;BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" ');
document.write('src="/Web/img/sidearrow.gif">');  //Arrow Image
document.write('</TD>');
}
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('<tr style="HEIGHT: 1px"><td></td></tr>');
}

  
