function gup( name )
    {
      name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
      var regexS = "[\\?&]"+name+"=([^&#]*)";
      var regex = new RegExp( regexS );
      var results = regex.exec( window.location.href );
      if( results == null )
        return "";
      else
        return results[1];
    }    

function readCookie(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return null;
}

function nt_init() 
{
/*	if($('loggedin') == null && $('loggingin') != null)  // it is showing the login box
	{
		// check the cookies
		if(null != readCookie('dpi_logon_uidMD5') && 
			'' != readCookie('dpi_logon_uidMD5')  && 
			null != readCookie('dpi_logon_username') && 
			'' != readCookie('dpi_logon_username') && 
			null != readCookie('dpi_logon_pwdMD5') && 
			'' != readCookie('dpi_logon_pwdMD5') )
		{
			alert ("hello!") ;
			var s = "Welcome back, " + readCookie('dpi_logon_username') + 
				".<br />"  +
				"<a href='index.php?logout=true'>Logout</a>";
			$('loggingin').innerHTML = s ; 
			window.location = location.pathname + "?login=" + readCookie('dpi_logon_username') 
			 +  "&pwdMD5=" + readCookie('dpi_logon_pwdMD5') ; 
		}
	}*/
}

function doSomethingWithClasses(theClass) {
//Populate the array with all the page tags
   /* var allPageTags=document.getElementsByTagName("*");
//Cycle through the tags using a for loop
    for (var i=0; i<allPageTags.length; i++) {
//Pick out the tags with our class name
      if (allPageTags[i].className==theClass) {
//Manipulate this in whatever way you want
        allPageTags[i].style.display='none';
      }
    }*/ 
	try {
		var aS= $$('div.'+theClass)  ;
		for(var i = 0 ;i < aS.length ; ++ i) 
		{
			aS[i].hide() ;
		} 
	}
	catch(e)
	{}
  }

function Show(id1, id2, id3, id4) {
  doSomethingWithClasses('RBtnTab');
  $('disclaimertitle').show() ;
  $('disclaimertext').show() ;  
  
  var div1 = $('DIV'+id1) ;
  var div2 = $('DIV'+id2) ;
  div1.show() ;
  div2.show() ;
  if(id3) 
  {
	try {
		var div3 = $('DIV'+id3) ;
		div3.show() ;
	}
	catch(e)
	{}
  }
  if(id4)
  {
	try {
		var div4 = $('DIV'+id4) ;
		div4.show() ;
	}
	catch(e)
	{}
  }
}

 
