function mail(l,t,d,s){var a,c,e; a='<a href=\"mai'; c='\">'; a+='lto:'; t+='@'; e='</a>'; t+=d+'?subject='; t+=s; document.write(a+t+c+l+e);}
function msg(size){if (!window.focus)return true;
  if (size==0){window.open('about:blank','msg','scrollbars=0,status=0,toolbar=0,location=0,menubar=0');}
   else {if (self.innerWidth){w=self.innerWidth;h=self.innerHeight;l=self.screenX;t=self.screenY;}
    else if (document.documentElement && document.documentElement.clientWidth){w=document.documentElement.clientWidth;h=document.documentElement.clientHeight;l=window.screenLeft;t=window.screenTop;}
    else if (document.body){w=document.body.clientWidth;h=document.body.clientHeight;l=window.screenLeft;t=window.screenTop;}else return;
    if (size<=1.0){z=size/2;x=l+w*(0.5-z);y=t+h*(0.5-z);h*=size;w*=size;} else {x=l+w*(0.5-(size*0.809)/w);y=t+h*(0.5-(size/(2*h)));h=size;w=1.618*h;} 
    nw=window.open('about:blank','msg','height='+h+',width='+w+',screenX='+x+',screenY='+y+',left='+x+',top='+y+',resizable=1,status=0,scrollbars=1,toolbar=0,toolbar=0,location=0,menubar=0');}
  if (window.focus) {nw.focus()}}
function ans(ans){if(document.getElementById("div"+ans).style.display=="none")
{document.getElementById("div"+ans).style.display="block";
document.getElementById("gif"+ans).src = "/gifs/hideanswer.gif";}
else{document.getElementById("div"+ans).style.display = "none";
document.getElementById("gif"+ans).src = "/gifs/answer.gif";}}
function hasClass(obj) {if (obj.getAttributeNode("class")!=null){return obj.getAttributeNode("class").value;} return false;}
function zebratable() {var c=["odd", "even"];var ts=document.getElementsByTagName("table");
  for (var i=0; i<ts.length; i++) {
    if (ts[i].className.match("zebra")) {
      var r = ts[i].getElementsByTagName("tr");
      for (var j=0; j<r.length; j++) {
        if (!hasClass(r[j]) && !r[j].style.backgroundColor) {
          var d=r[j].getElementsByTagName("td");
          for (var h=0; h<d.length; h++) {
            if (!hasClass(d[h]) && !d[h].style.backgroundColor) {
              d[h].className=c[j%2];}}}}}}}
