<!--
function unhide(divID) {
  var item = document.getElementById(divID);
  if (item) {
    item.className=(item.className=='visible')?'invisible':'visible';
  }
}

function openpopupwin(mypage,w,h,position) {

var mypage;
var myname='genpopup';
	if( mypage == "faq" ) {
		mypage = "../public/faq.asp#" + position;
	}

	if( mypage == "terms" ) {
		mypage = "../public/terms.asp";
	}

	if( mypage == "privacy" ) {
		mypage = "../public/privacy.asp";
	}

	if( mypage == "demo" ) {
		mypage = "../publicHC/movies/mailshots_movie.html";
	}

	if( mypage == "demo2" ) {
		mypage = "../publicHC/movies2/mailshots_movie2.html";
	}

  if(screen.width){
	  var winl = (screen.width-w)/2;
	  var wint = (screen.height-h)/2;
  }else{
		winl = 0;
		wint = 0;
	}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;

  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += 'scrollbars=yes,resizable=1';

  win = window.open(mypage,myname,settings);
  win.window.focus();
}

function toggleLayer(whichLayer)
{
	if (document.getElementById)
	{
	// this is the way the standards work
	var style2 = document.getElementById(whichLayer).style;
	style2.display = style2.display? "":"none";
	}
	else if (document.all)
	{
	// this is the way old msie versions work
	var style2 = document.all[whichLayer].style;
	style2.display = style2.display? "":"none";
	}
	else if (document.layers)
	{
	// this is the way nn4 works
	var style2 = document.layers[whichLayer].style;
	style2.display = style2.display? "":"none";
	}
}
//-->
