
		//---------------------------------
		// change properties of UltraWebTab:::
	
	
	  //Enable or Disable tab by Tab index
		function changeEnable(TabIndex)
		{
			// get index of tab which should be modified
			var i = 0;
		  // try{i = parseInt(igtab_getElementById(TabIndex).value);}
			try{i = TabIndex;}
			catch(e){return;}
			// get reference to the script object that represents UltraWebTab
			var tab = igtab_getTabById("UltraWebTab1");
		
			//-1 Disables all tabs
			if(tab != null)
			{
				var t = tab;
				if(i >= 0) t = tab.Tabs[i];
				t.setEnabled(!t.getEnabled());
			}
		}
		
		
		//Set Visibility to Tab by Tab Index
		function changeVisible(VisibleTabIndex)
		{
			// get index of tab which should be modified
			var i = 0;
	 	 //	try{i = parseInt(igtab_getElementById(VisibleTabIndex).value);}
		 		try{i = parseInt(VisibleTabIndex);}
			catch(e){return;}
			// get reference to the script object that represents UltraWebTab
			var tab = igtab_getTabById("UltraWebTab1");
			if(tab != null && i >= 0)
			{
				var t = tab.Tabs[i];
				t.setVisible(!t.getVisible());
			}
		}
		
	    function setVisibility(VisibleTabIndex, Visible)
		{
			// get index of tab which should be modified
			var i = 0;
            var v = 0;
	 	 //	try{i = parseInt(igtab_getElementById(VisibleTabIndex).value);}
		 		try{i = parseInt(VisibleTabIndex);
		 		    v = parseInt(Visible);
		 		   }	 		  
			catch(e){return;}
			// get reference to the script object that represents UltraWebTab
			var tab = igtab_getTabById("UltraWebTab1");
			if(tab != null && i >= 0)
			{
				var t = tab.Tabs[i];
				if(v == 1){
				t.setVisible(true);
				}
				else{
				t.setVisible(false);
				}
			}
		}
		
		
		//Select Tab by Tab Index
		function selectTab(SelectedTabIndex)
		{
			// get index of tab which should be selected
			var i = 0;
			try{i = parseInt(SelectedTabIndex);}
			catch(e){return;}
			// get reference to the script object that represents UltraWebTab
			var tab = igtab_getTabById("UltraWebTab1");

			if(tab != null && i >= -1)
			{
				//igtab_select(tab.Tabs[i]);
				//igtab_selectTab(tab, i, false);
				tab.setSelectedIndex(i);
			}
		}
		
		//Change text on tab by tab index
		function changeTabText(TextTabIndex, TabText)
		{
			// get index of tab which should be modified
			var i = 0;
		 // try{i = parseInt(igtab_getElementById(TextTabIndex).value);}
		 	try{i = parseInt(TextTabIndex);}
			catch(e){return;}
			// get reference to the script object that represents UltraWebTab
			var tab = igtab_getTabById("UltraWebTab1");
			if(tab != null && i >= 0)
			{
				var t = tab.Tabs[i];
				t.setText(TabText);
			}
		}
		
		//Change tab image
		function changeTabImage(ImageTabIndex)
		{
			// get index of tab which should be modified
			var i = 0;
	  	//	try{i = parseInt(igtab_getElementById(ImageTabIndex).value);}
	  	try{i = parseInt(ImageTabIndex);}
			catch(e){return;}
			// get reference to the script object that represents UltraWebTab
			var tab = igtab_getTabById("UltraWebTab1");
			if(tab != null && i >= 0)
			{
				var t = tab.Tabs[i];
				if(t.getDefaultImage() == null || t.getDefaultImage().length == 0)
				{
					// Note: images should be with the full file-path
					// they should start with the "." or "/", or contain the ":" character.
					// If the "./" is not included, then after a submit, the server
					// (UltraWebTab class) will replace the "img1.gif"
					// by the "/ig_webbars2_images/img1.gif"
					t.setDefaultImage("./images/img1.gif");
					t.setHoverImage("./images/img2.gif");
					t.setSelectedImage("./images/img3.gif");
				}
				else
				{
					t.setDefaultImage("");
					t.setHoverImage("");
					t.setSelectedImage("");
				}
			}
		}
		
		
		//Change Target URL of a Tab by Tab Index and Url Path.
		function changeTarget(TargetUrlPath,TabIndex)
		{
			// get value for the target url
			var url = null;
			var i = 0; 
		  //	try{url = igtab_getElementById("TargetUrlPath").value;}
			try
			{
			url = (TargetUrlPath);
			i = parseInt(TabIndex);
			}
			catch(e){return;}
			// get reference to the script object that represents UltraWebTab
			var tab = igtab_getTabById("UltraWebTab1");
			if(tab != null && i >= 0)
			{
				var t = tab.Tabs[i];
				t.setTargetUrl(url);
			}
		}
		
		//Change Tool Tip text of Tab by TabIndex and Text.
		function changeTooltip(ToolTipText,TabIndex)
		{
			// get value for the tooltip
			var tip = null;
			var i = 0; 
		 //	try{tip = igtab_getElementById("ToolTipText").value;}
			try
			{
			tip = (ToolTipText);
			i = parseInt(TabIndex);
			}
			catch(e){return;}
			// get reference to the script object that represents UltraWebTab
			var tab = igtab_getTabById("UltraWebTab1");
			if(tab != null)
			{
				var t = tab.Tabs[i];
				t.setTooltip(tip);
			}
		}
		
         function createPage(msg)
          {
            response = confirm(msg);
            if(response)
            {
              window.location = "NavigationTab.aspx?page=CreatePage&tm=" + Date(); 
              return true;
            }
            else { return false; }
          }
          
          function deletePage(msg,pageid)
          {
            response = confirm(msg);
            if(response)
            {
              window.location = "ConfirmDelete.aspx?pgid=" + pageid + "&tm=" + Date(); 
              return true;
            }
            else 
            { 
              alert("Delete Canceled");
              return false; 
            }
          }
	