
function CDinamicDraw(sName, nXPos, nYPos)
{
	this.m_sName = sName;
	this.m_nXPos = nXPos;
	this.m_nYPos = nYPos;

	this.Draw = CDinamicDraw_Draw;
	this.Redraw = CDinamicDraw_Redraw;
}

function CDinamicDraw_Draw()
{
	if (document.all || document.getElementById)
		document.write("<DIV id='" + this.m_sName + "' STYLE=\"POSITION: absolute; TOP: " + this.m_nYPos + 
			 "px; LEFT: " + this.m_nXPos +"px; z-Index: 1\"></div>");
	else
	if (document.layers)
		document.write("<LAYER id='" + this.m_sName + "' TOP=" + this.m_nYPos + " LEFT=" + this.m_nXPos + " Z-INDEX=1></LAYER>");
}

function CDinamicDraw_Redraw(sHTML)
{
	if(document.getElementById) document.getElementById(this.m_sName).innerHTML = sHTML;
	else
	if (document.all) eval('document.all.' + this.m_sName + '.innerHTML=\''+sHTML+'\'');
	else
	if (document.layers) eval('document.' + this.m_sName + '.document.write(\''+sHTML+'\');\n document.' + this.m_sName + '.document.close();');
}

