﻿<!--

function SetUniqueRadioButton(nameregex, current)
{
   re = new RegExp(nameregex);
   for(i = 0; i < document.forms[0].elements.length; i++)
   {
      elm = document.forms[0].elements[i]
      if (elm.type == 'radio')
      {
         if (re.test(elm.name))
         {
            elm.checked = false;
         }
      }
   }
   current.checked = true;
}

function openCertDetails() 
{
  //window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=GBDSTX2', 'anew',config='height=400,width=500,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
  openPopup('https://www.thawte.com/cgi/server/certdetails.exe?code=GBDSTXX1-1X', 
             530, 500,
			'toolbar=no menubar=no,scrollbars=yes resizable=no location=no directories=no status=yes'
			);	
}

function openPopup(URL, width, height, param) 
{
    var x = getBrowserWidth() / 2;
    var y = getBrowserHeight() / 2;
    var param = param + ' ' +
              'width=' + width + ' ' +
              'height=' + height + ' ' +
              'top=' + (window.screenTop + (y - (height/2))) + ' ' +
              'left=' + (window.screenLeft + (x - (width/2)));     	
    popup = window.open(URL, 'popUp', param);                 	
    popup.focus();
}

function getBrowserWidth() 
{
    if (navigator.userAgent.indexOf("MSIE") > 0)
        return(document.body.clientWidth);
    else
        return window.outerWidth;
}

function getBrowserHeight() 
{
    if (navigator.userAgent.indexOf("MSIE") > 0)
        return(document.body.clientHeight);
    else
        return(window.outerHeight);
}

// -->

