// BEGIN FUNCTION DEFINITIONS
function documentOutput(reference,text)  {
        reference.document.open();
        reference.document.write(text);
        reference.document.close();
        }

function setStatus (msg)  {
        window.status = msg;
        return true;
        }
function showPanImage(title,file,length)  {
        if (!panWindow || panWindow.closed)  {
                var panWindow = window.open("","","width=300,height=180,scrollbars=yes");
                }
        var text = '<html><head><title>';
                text += title;
                text += '</title></head><body background="';
                text += file;
                text += '" bgcolor="#FFFFFF">';
                text += '<form><input type=button value="Close window" onClick="window.close()"></form><img src="spacer.gif" height=1 width=';
                text += length;
                text += '></body></html>';
        documentOutput(panWindow,text);
        panWindow.focus();
        }

// BEGIN METHOD DEFINITIONS
function drawBox()  {
        var data = '<TABLE border=0 cellspacing=0 cellpadding=0 width=';
        data += this.width;
        data += '><tr><td width=100% valign=top>';
        data += '<table width=100% border=0 cellspacing=0 cellpadding=0>';
        data += '<tr><td width=100% bgcolor="#000000">';
        data += '<table width=100% border=0 cellspacing=1 cellpadding=0>';
        data += '<tr><td width=100%>';
        data += '<table width=100% border=0 cellspacing=0 cellpadding=2>';
        data += '<tr><td width=100% bgcolor="#';
        data += this.BGColor;
        data += '"><font face="Arial" size=+1 color="#';
        data += this.textColor;
        data += '">';
        data += this.content;
        data += '</font></td></tr></table></td></tr></table></td></tr></table></td></tr></table>';
        document.write(data);
        }                

// BEGIN CLASS DEFINITIONS 
function tableBox(width,text)  {  // constructor method
        this.width = width;
        this.borderColor = '000000';
        this.BGColor = 'C080C0';
        this.font = 'Arial';
        this.textColor = 'FFFFFF';
        this.content = text;
        }
new tableBox;
tableBox.prototype.drawBox = drawBox;

