<!--

{  
   var sCSS = 'nothing';
   if (navigator.appName == "Netscape"){
    sCSS = '<link href="/_css/main_win_ns.css" rel="stylesheet" type="text/css">';
	document.write(sCSS) ; }
}
function tellcolleague(ref)
{ 
var str="toolbar=no,status=no,menubar=no,location=no,scrollbars=yes,resizable=yes,height=400,width=500"
	tellaFriend = window.open(ref,"TellObj",str);
    tellaFriend.opener = top;
} 
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}

function print(ref)
{ 
var str="toolbar=yes,status=no,menubar=no,location=no,scrollbars=yes,resizable=yes,height=650,width=650"
	print = window.open(ref,"TellObj",str);
    print.opener = top;
} 

function internetSelect() 
{
  var selectedValue = document.getElementById("internet").value;
  document.getElementById("opt21").style.display = "none";
  document.getElementById("opt22").style.display = "none";

 if(selectedValue == "unsubscribe")
  document.getElementById("opt21").style.display = "block";
 
 if(selectedValue == "subscribe")
  document.getElementById("opt22").style.display = "block";
}

function ballotSelect() 
{
  var selectedValue = document.getElementById("ballot").value;
  
  if(selectedValue == "" || selectedValue == "Received ballot paper but it is damaged" || selectedValue == "Received a ballot paper but it is lost")
  document.getElementById("not_received").style.display = "none"
  else
  document.getElementById("not_received").style.display = "block";
  
}

function oldaddressSelect() 
{
  var selectedValue = document.getElementById("oldaddress").value;
  
  if(selectedValue == "no")
  document.getElementById("address").style.display = "none"
  else
  document.getElementById("address").style.display = "block";
  
}

function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

//-->