//********** LAYERS **********

function LyrSetLeft(LyrName,PosL) // SET LAYER LEFT POSITION ABSOLUTE
{
if (document.getElementById)   {document.getElementById(LyrName).style.left = PosL + "px"; return;}
if (document.layers)   {document.layers[LyrName].left = PosL;}
if (document.all)      {document.all[LyrName].style.left = PosL + "px";} //for Billy
}

function LyrSetTop(LyrName,PosT) // SET LAYER TOP POSITION ABSOLUTE
{
if (document.getElementById)   {document.getElementById(LyrName).style.top = PosT + "px"; return;}
if (document.layers)   {document.layers[LyrName].top = PosT;}
if (document.all)      {document.all[LyrName].style.top = PosT + "px";} //for Billy
}

function LyrGetLeft(LyrName) // GET LAYER LEFT POSITION
{
if (document.getElementById)	{return parseInt(document.getElementById(LyrName).style.left, 10);}
if (document.layers)   {return document.layers[LyrName].left;}
if (document.all)      {return parseInt(document.all[LyrName].style.left ,10);} //for Billy
}

function LyrGetTop(LyrName)     // GET LAYER TOP POSITION
{
if (document.getElementById)	{return parseInt(document.getElementById(LyrName).style.top, 10);}
if (document.layers)   {return document.layers[LyrName].top;}
if (document.all)      {return parseInt(document.all[LyrName].style.top ,10);} //for Billy
}

function LyrVisOn(LyrName) // SET LAYER VISIBILITY ON
{
if (document.getElementById)      {document.getElementById(LyrName).style.visibility = "visible"; return;}
if (document.layers)   {document.layers[LyrName].visibility = "show";}
if (document.all)      {document.all[LyrName].style.visibility = "visible";} //for Billy
}

function LyrVisOff(LyrName)     // SET LAYER VISIBILITY OFF
{
if (document.getElementById)	{document.getElementById(LyrName).style.visibility = "hidden"; return; }
if (document.layers)   {document.layers[LyrName].visibility = "hide";}
if (document.all)      {document.all[LyrName].style.visibility = "hidden";} //for Billy
}

function LyrBack(LyrName, backy) // SET LAYER BACKGROUNDCOLOR
{
if (document.getElementById)	{document.getElementById(LyrName).style.background = backy; return;}
if (document.layers)   {document.layers[LyrName].document.bgColor = backy;}
if (document.all)      {document.all[LyrName].style.background = backy;} //for Billy
}

function LyrGetHgt(LyrName)     // GET LAYER HEIGHT
{
if (document.getElementById)	{return document.getElementById(LyrName).offsetHeight;}
if (document.layers)   {return document.layers[LyrName].clip.height;}
if (document.all)      {return document.all[LyrName].offsetHeight;} //for Billy
}

function LyrGetWdt(LyrName)     // GET LAYER WIDTH
{
if (document.getElementById)	{return document.getElementById(LyrName).offsetWidth;}
if (document.layers)   {return document.layers[LyrName].clip.width;}
if (document.all)      {return document.all[LyrName].offsetWidth;} //for Billy
}

function LyrSetText(LyrName, outText)	// SET LAYER TEXT (HTML-CODE)
{
if (document.getElementById) {document.getElementById(LyrName).innerHTML = outText; return;}
if(document.layers) {
   	document.layers[LyrName].document.open();
   	document.layers[LyrName].document.write(outText);
   	document.layers[LyrName].document.close();}
else if(document.all)
   	{document.all[LyrName].innerHTML = outText;} //for Billy
}

//**********
