<!--
function rollimg(imgname,newimgname)
{
   document[imgname].src=newimgname;
}


function getID(bitName)
{
   return document.getElementById?document.getElementById(bitName):document.all?document.all[bitName]:document.layers[bitName];
}


function toggleDiv(bitName)
{
   var bit = getID(bitName);

   if (bit.style.position == 'relative')
   {
      bit.style.position = 'absolute';
      bit.style.display = 'none';
   }
   else
   {
      bit.style.position = 'relative';
      bit.style.display = 'block';
   }
}


function hideErrorDiv(divID)
{
   var bit = getID(divID);
   bit.style.display = 'none';
}

function slideDiv(divID,slideDistance,slideDirection)
{
   var bit = getID(divID);

   if (slideDirection == "D")
      bit.style.top = eval(bit.style.top.substr(0,bit.style.top.length-2)) + 10;
   else if (slideDirection == "U")
      bit.style.top = eval(bit.style.top.substr(0,bit.style.top.length-2)) - 10;
   else if (slideDirection == "L")
      bit.style.left = eval(bit.style.left.substr(0,bit.style.left.length-2)) - 10;
   else 
      bit.style.left = eval(bit.style.left.substr(0,bit.style.left.length-2)) + 10;

   if (slideDistance > 10)
   {
      setTimeout("slideDiv('" + divID + "'," + (slideDistance-10) + ",'" + slideDirection + "')",20);
   }
}


function writeErrorDiv(errorMsg)
{
   var randNum = Math.floor(Math.random()*10000);
   var divID   = "errorDiv" + randNum + "num";

   document.write("<div id='" + divID + "' style='z-index:5;padding:20px;display:block;position:absolute;left:0px;top:-109px;height:100px;width:100%;border:3px dotted #888888;background-color:#FFFFFF;font-family:arial;font-size:16px;font-weight:bold;color:blue;line-height:140%;' onClick='getID(\"" + divID + "\").style.display=\"none\";'>" + errorMsg + "</div>");
   slideDiv(divID,110,"D");
   setTimeout("slideDiv('" + divID + "',110,'U')",5000);
   setTimeout("hideErrorDiv('" + divID + "')", 6000);
}
-->