<!--
function rnd(max) {
var rndnum=max*Math.random();
rndnum=Math.ceil(rndnum);
return rndnum;
}

function ltrim(sString){
  while(sString.substring(0,1)==' ')sString=sString.substring(1,sString.length);
  return sString;
}

function rtrim(sString){
  while(sString.substring(sString.length-1,sString.length)==' ')sString=sString.substring(0,sString.length-1);
  return sString;
}

function trim(sString){
  return rtrim(ltrim(sString));
}

function stepcss_fontSize(obj) {
  obj.style.fontSize="";
}

function stepup_fontSize(obj) {
  if(obj.className=="txtsituation"||obj.className=="rubbas"||obj.className=="rubinterne") return;
  var objSize=obj.style.fontSize;

  switch(objSize) {
    case"xx-small":obj.style.fontSize="x-small";
    break;
    case"x-small":obj.style.fontSize="small";
    break;
    case"small":obj.style.fontSize="medium";
    break;
    case"medium":obj.style.fontSize="large";
    break;
    case"large":obj.style.fontSize="large";
    break;
    case"12px":obj.style.fontSize="14px";
    break;
    case"14px":obj.style.fontSize="16px";
    break;
    case"16px":obj.style.fontSize="18px";
    break;
    case"18px":obj.style.fontSize="20px";
    break;
    case"20px":obj.style.fontSize="20px";
    break;
    default:obj.style.fontSize="14px";
    break;
  }
}
function stepdn_fontSize(obj) {
  if(obj.className=="txtsituation"||obj.className=="rubbas"||obj.className=="rubinterne")return;
  var objSize=obj.style.fontSize;

  switch(objSize) {
    case"large":obj.style.fontSize="medium";
    break;
    case"medium":obj.style.fontSize="small";
    break;
    case"small":obj.style.fontSize="x-small";
    break;
    case"x-small":obj.style.fontSize="xx-small";
    break;
    case"20px":obj.style.fontSize="18px";
    break;
    case"18px":obj.style.fontSize="16px";
    break;
    case"16px":obj.style.fontSize="14px";
    break;
    case"14px":obj.style.fontSize="12px";
    break;
  }
}

function step_fontSize(obj, step) {
  if (step=="up") {
    stepup_fontSize(obj);
  }
  else if (step=="dn") {
    stepdn_fontSize(obj);
  }
  else {
    stepcss_fontSize(obj);
  }
}

function txtsize(step) {
  var tagNameList=["span","strong","p","li","td","a","div","h3","h2","h1"];
  var view=document.getElementById("dcontent");

  for(var i in tagNameList){
    var tagName=tagNameList[i];
    var elements=view.getElementsByTagName(tagName);
    for(var j=0;j<elements.length;j++){
      var element=elements[j];
      step_fontSize(element,step);
    }
  }
}

var axx=0;
function interGap() {
var k=document.getElementById('dcontent').offsetTop;
var n=document.getElementById('dfoot').offsetTop +k;
var l=document.getElementById('dfill');
var o=document.getElementById('dfill2');
if(l) {
var m=l.offsetTop;
axx=l.style.height;
if(n>m) {
  axx=n-m;
  l.style.height=axx +"px";
}
if(o) {
var q=o.offsetTop;
if(n>q) {
  axx=n-q;
  o.style.height=axx +"px";
}
else {
  o.style.top="0px";
  o.style.height="0px";
}
}
}
if (typeof __timehook != "undefined") timehook();
}

function resize(updn) {
  txtsize(updn);
  interGap();
}
//-->
