    //create the browser object
      var browser =  new Object();
      
      var prev_svdetails = "";
      var prev_svdetails_alink = "";
      var prev_svgroup_alink = "";
      var indx;
      var sconfirm;
      var smode;
      var browserName;
      var imgext;
      
      
            <!--
              function clear_control(cid, smode)
                { if (smode == 'i')
                   { document.getElementById(cid).innerHTML = '';}
                  else if (smode == 'v')
                   { document.getElementById(cid).value = '';}
                }
            // -->
            
            <!--
			var iconCatPlus = true;
			var lastexpandedCatID;
			var lastexpandedSubCatID;
			var lastexpandedIconID;

			function collapse_lastexpanded(cid)
					{
					if ((iconCatPlus == false) && (lastexpandedSubCatID !== cid))
						{
						document.getElementById('pnl_taxon').style.display="none";
						document.getElementById(lastexpandedSubCatID).style.display="none";						
						document.getElementById(lastexpandedIconID).innerText="+";
						iconCatPlus = true;
						}
					}
			// -->
            
			<!--
			function expand_collapse(cid)
			     {
//			        getbrowser();
//			        if (browser.isMicrosoft) { smode = 'block';} else { smode = "";} 
			        
			        smode = 'block';
					document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="none")? "none" : smode;
					lastexpandedSubCatID = cid;
				}
			// --> 
			
			function expand_collapse_section(arg1, arg2)
			{
			    getbrowser();
			    if (document.getElementById(arg2).alt == "hide...")
			        {
			            document.getElementById(arg2).alt = "see details...";
			            document.getElementById(arg2).src = "images/plus." + imgext;
			        } 
			    else
			        {
			            document.getElementById(arg2).alt = "hide...";
			            document.getElementById(arg2).src = "images/minus." + imgext;
			        }

//                getbrowser();
//                if (browser.isMicrosoft) { smode = 'block';} else { smode = "";}                
                
                smode = 'none';
			    switch(arg1)
			    {
			        case '2':
			            document.getElementById('tr_section2').style.display=(document.getElementById('tr_section2').style.display!="block")? "block" : smode;
			            break;
			            
			         case '3':
			            document.getElementById('tr_section3').style.display=(document.getElementById('tr_section3').style.display!="block")? "block" : smode;
			            break;
			            
			         case '5':
			            document.getElementById('tr_newservicelist').style.display=(document.getElementById('tr_newservicelist').style.display!="block")? "block" : smode;
			            break;
			    }
			}
			// -->
			<!--
			function expand_collapse_section_sv(arg1, arg2, arg3)
			    {	
			        var elemid;
			        var elemid1;
			        elemid = 'td_svcontent_' + arg1;
			        elemid1 = 'tr_srv_content_' + arg1;
			        
			        getbrowser(); 
                    smode = 'block';
			        if (document.getElementById(arg2).alt == "see details...")
			           {
        	    
                            //reset plus/minus icon
			                document.getElementById(arg2).alt = "hide...";
			                document.getElementById(arg2).src = "images/minus." + imgext;			        	    
			        	    
			        	    prev_svdetails = elemid1;
	    	                prev_svdetails_alink = arg2;
	    	                prev_svgroup_alink = arg3;

			                if (document.getElementById(elemid).innerHTML == '')
		                        {DoCallBack_Service(arg1, elemid, elemid1);}
		                    else
		                        {document.getElementById(elemid1).style.display = 'block';}
			                
			            }
			        else
			            {
			                document.getElementById(arg2).alt = "see details...";
			                document.getElementById(arg2).src = "images/plus." + imgext;
			                document.getElementById(elemid1).style.display='none';
			            }
		            
    	   
	    	    }
			// -->	
			
			<!--	
			function hide_edit_panel()
			    {
			        hideshow_element('pnl_taxon', 'none');
			        hideshow_element('pnl_cat', 'none');
			        hideshow_element('div_edit', 'none');
			        document.getElementById('div_edit').style.width = 500 + "px";
                    document.getElementById('tbl_edit').style.width = 500 + "px";
                    document.getElementById('pnl_edit').style.width = 470 + "px";
                    
                    document.getElementById('div_edit').style.left = 150 + "px";
			    }
			// -->  
			 	
			<!--
			function hideshow_element(cid, smode)
					{
					    if (cid == 'div_loading' && smode !== 'none')
					        {
					            iheight = document.getElementById(cid).style.height;
					            var iypos = get_pageoffset();
					            iypos = position_panel(iheight, iypos)
					            document.getElementById(cid).style.top = iypos + "px";
					        }
					        
//					    if (smode == 'block')
//					        {
//					            getbrowser();
//			                    if (browser.isMicrosoft) { smode = 'block';} else { smode = "";} 
//			                 }               
						document.getElementById(cid).style.display = smode;
					}			
			// -->
			
			<!--
			function hide_sections2and3()
			    {			    
					document.getElementById('tr_section2').style.display = "none";
					document.getElementById('tr_section3').style.display = "none";
					
					document.getElementById('img_hidesec2').alt = "see details...";
					document.getElementById('img_hidesec2').src = "images/plus.png";
					document.getElementById('img_hidesec3').alt = "see details...";
					document.getElementById('img_hidesec3').src = "images/plus.png";
			    }
			    
			// -->
			
			<!-- 
			function move_on(arg1, arg2, arg3)
			    {
			        var scid = document.getElementById(arg1).value;
			        var inum = Number(arg2);
			        if (scid.length == inum)
			            {
			                document.getElementById(arg3).focus();
			            }
			    }
			
			// -->
			
			<!--
			function populate_textbox(cid1, cid2)
			    {
		            var strValues;
		            for (indx = 0 ; indx < document.getElementById(cid1).options.length  ; indx++)
		                {
		                 if (indx > 0){strValues += "~";}
                         strValues += document.getElementById(cid1).options[indx].value;
		                }
		             document.getElementById(cid2).value = strValues;   
			    }
			// -->
			
			<!--
			function remove_from_list(cid1, cid2)
			    {		
			        if (cid1 !== 'sel_svterm')  
			            {      
			                document.getElementById(cid1).options[document.getElementById(cid1).selectedIndex] = null;
			            }
			        else if (document.getElementById(cid1).selectedIndex > 1)
			            {
			               document.getElementById(cid1).options[document.getElementById(cid1).selectedIndex] = null;
                        }
			            
			        if (cid2 !== '') {populate_textbox(cid1, cid2);}
			    }
			// -->
					    
			<!--
			function setfocus(cid)
			    {   if (document.getElementById(cid).disabled == false)
			        { document.getElementById(cid).focus();}
			    }
			// -->
						
			<!--
			function setimage(cid1, btnImage)
			    {
			        getbrowser();
			        if ((browser.isMicrosoft) && (browser.IEversion != '7'))
			            {
			                // set image for IE6 browser...
			                btnImage = btnImage.substr(0, btnImage.length - 3) + 'gif';		                
			            }
			        document.getElementById(cid1).src = btnImage;
			    }
			// -->		
			
			<!--
			function setsheet(ownerid)
			    {
			        var l = document.getElementsByTagName('link'), ii, o, t;
			        for( ii=0; (o = l[ii]); ii++ )
			            {
			                if (o.getAttribute('rel') == 'stylesheet')
			                    {
			                      o.setAttribute('') = ownerid;
			                    }
			            }
			    }
			 // -->
    
			<!--
			function show_div_confirm(arg, smode)
			    {
			      var iYpos;
			      if (arg !== '')
			        { 
			            sconfirm = arg;
			            if (arg == 'nc')
			                {
			                    document.getElementById('span_confirm').innerHTML = 'Are you sure there are no changes for this location?<p></p><p></p>';
			                    hideshow_element('ib_nochanges', 'inline');
			                 }
			            else
			                {
			                    if (arg == 'sp')
			                        { document.getElementById('span_confirm').innerHTML = 'Are you sure all changes for this location are complete?<br />You can login again at any time to make more changes.<p></p><p></p>'; }
			                    hideshow_element('ib_savepageyes', 'inline');
			                }
			            iYpos = get_pageoffset();
                        document.getElementById('div_confirm').style.top = (iYpos + 400) + 'px'; 
                        document.getElementById('div_confirm').style.left = 350 + "px";         
			        }
			      else
			        { sconfirm = '';}
			      
			      document.getElementById('div_confirm').style.display = smode;			    
			    }
			// -->
			     
			<!--
			function show_div_edit(itop)
					{
//					  getbrowser();
//                      if (browser.isMicrosoft) { smode = 'block';} else { smode = "";}                

                      smode = 'block';
					  document.getElementById('div_edit').style.top = itop + "px";
					  document.getElementById('div_edit').style.display = smode;
					}			
			// -->	
			
			<!--
			function show_div_newphones()
			    {
			        var iYpos;
			        iYpos = get_pageoffset(); 
			        document.getElementById('div_newphones').style.top = (iYpos + 80) + 'px';
			        document.getElementById('div_newphones').style.display = 'block';
			        document.getElementById('tb_newphn1_1').focus();
			    }
			
			// -->
			    
			<!--
			function switch_link(cid)
			       {
			        if (document.getElementById(cid).innerHTML == "hide info")
			            {document.getElementById(cid).innerHTML = "show info";}
			        else
			            {document.getElementById(cid).innerHTML = "hide info";}
			       }
			// --->
			<!--
			function switch_plusminus(cid)
					{
					if (iconCatPlus == true)
						{
						document.getElementById(cid).innerText="-";
						iconCatPlus = false;
						lastexpandedIconID = cid;
						}
					else
						{
						document.getElementById(cid).innerText="+";	
						iconCatPlus = true;
						}																		
					}						
			// -->
			
            <!--
            function getbrowser()
                {

            //determine the browser's major version
            browser.version = parseInt(navigator.appVersion);

            //next determine if the browser is IE or Netscape
            //start by assuming it is not
            browser.isNetscape = false;
            browser.isMicrosoft = false;
            browser.IEversion = '7';
            imgext = 'png';

            if (navigator.appName.indexOf("Netscape") != -1)
                {browser.isNetscape = true;}
            else if (navigator.appName.indexOf("Microsoft") != -1)
                {
                    browser.isMicrosoft = true;
                    if (navigator.appVersion.indexOf("MSIE 6") != -1)
                        {
                          browser.IEversion = '6';
                          imgext = 'gif';
                        }
                 }                
                } 
            // -->				