

		   var s=0;
               function showMenu(a)
               {     
				        s=a;
                      popMenu(itemMenu,100,"111");
                      event.returnValue=false;
                      event.cancelBubble=true;
                      return false;
               }

               function popMenu(menuDiv,width,rowControlString)
               {
                 
                   var pop=window.createPopup();
           
                   pop.document.body.innerHTML=menuDiv.innerHTML;

                   var rowObjs=pop.document.body.all[0].rows;
          
                   var rowCount=rowObjs.length;
               
                   for(var i=0;i<rowObjs.length;i++)
                   {
                   
                       var hide=rowControlString.charAt(i)!='1';
                       if(hide){
                           rowCount--;
                      }
                     
                      rowObjs[i].style.display=(hide)?"none":"";
             
                      rowObjs[i].cells[0].onmouseover=function(){
                           this.style.background="#818181";
                         this.style.color="white";
                      }

                     rowObjs[i].cells[0].onmouseout=function(){

                          this.style.background="#FFFFFF";

                         this.style.color="black";

                     }
                }
            
                pop.document.oncontextmenu=function(){
                      return false;
                }


                pop.document.onclick=function(){
                      pop.hide();
                }
   
                pop.show(event.clientX-1,event.clientY,width,rowCount*25,document.body);
                return true;
          }

          function Edit(){
		  	box.Show();
            zi.partition(1,0)  
          }

          function update(){

          }

          function del(){
          }
          
 var zi = new Object();
    
    zi.partition = function(type,two)
    {
        if(type==1)
        {
         window.EditFrame.location.href="../../ShowASP/indexAsp/addCol.aspx";
        }
        else if(type==2)
        {
        window.EditFrame.location.href="../../ShowASP/indexAsp/addCol.aspx?id="+two+"";
        }
        else if(type==3)
        {
        window.EditFrame.location.href="../../ShowASP/indexAsp/addCol.aspx?id="+two+"";
        }
    }
    
    
   function ShowAdd(type)
   {
         window.parent.document.getElementById("showDiv").style.height ="372px";
         window.parent.document.getElementById("idBox").style.width ="506px";
         window.EditFrame.location.href="../../ShowASP/indexAsp/addCol.aspx?id="+type+"";
   } 
    
    function ShowAddZ(id)
    {
     window.parent.settreeT(id);
    }
    function ShowAddB(id)
    {
     window.parent.settreeB(id);
    }
    function settreeB(id)
    {
     window.parent.ShowAddTB(id); 
     window.parent.box.Show();
    }
   function ShowAddTB(type)
   {
        window.document.getElementById("showDiv").style.height ="100px";
        window.document.getElementById("idBox").style.width ="506px";
        window.EditFrame.location.href="addBotCol.aspx?id="+type+""; 
   } 
    function settreeT(id)
    {
     window.parent.ShowAdd(id); 
     window.parent.box.Show();
    }
    
    function addCol()
    {
         window.parent.document.getElementById("showDiv").style.height ="400px";
         window.parent.document.getElementById("idBox").style.width ="506px";
         window.parent.EditFrame.location.href="../../ShowASP/indexAsp/addCol.aspx";
         window.parent.box.Show();
    }
    
    

