// BBB pop up code; inserted here because this include is on every secure page

// This function is already included from the rcverify.js file
//function Rcertify()
//{
//popupWin = window.open('http://www.bbbonline.org/cks.asp?id=102080910321925326', 'Participant','location=yes,scrollbars=yes,width=450,height=300');
//window.name = 'opener';
//}

// switch to secure protocol



function dns()
{
  var docref = document.URL

  a = docref.indexOf('//')
  var ref = docref.substr(a+2, docref.length)

  return ref
}

var homeDNS = dns();

function goSecure()
  {
    

  var docref = document.URL

  a = docref.indexOf(':')
  
  var ref = docref.substr(0, a)

  

  if (ref == "http") 
// document.write(homeDNS);

	location.replace("https://" + homeDNS);


}

//goSecure();
