




function OrionGetElementById(e){
	if(typeof(e)!='string') 
	    return e;
    	
	    if(document.getElementById) 
	        e=document.getElementById(e);
	    else if(document.all) 
	        e=document.all[e];
	    else 
	        e=null;
	
	return e;
	}




//-------------------------
function ShowLayer(elementID )
{ 
	     // this is the way the standards work
        OrionGetElementById(elementID).style.display='block';
      

	  
    }


//-------------------------
function HideLayer(elementID )
{ 
				
		if (elementID!=null)
		{
		    OrionGetElementById(elementID).style.display='none';

	    }

    }
		
	//-------------------------
    function ToggleLayer(elementID){
  		
		if(OrionGetElementById(elementID))
		{
  		
		if(OrionGetElementById(elementID).style.display==" " ||  OrionGetElementById(elementID).style.display=="block"  )
		  {
		   HideLayer(elementID); 
		  }
   		else
   		 {
		   ShowLayer(elementID); 
         }	
		
		}
		
     return;
    }

    //-------------------------	
     function NgRefreshWindow()
        { 
           window.location.href=window.location.href;        
        }
        
        
    //------------------------- 
    function xreplace(s, r, w){
       return s.split(r).join(w);
    }

