function setPointer(theRow, thePointerColor) {

    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }

    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        theRow.cells[c].bgColor = thePointerColor;
    }

    return true;
}

/******************************************************************************/
function hidestatus() {
    window.status='3T Blue Line s.r.l';
    return true
}

/******************************************************************************/
function makevisible(cur,which) {
    if (which==0)
      cur.filters.alpha.opacity=100;
    else
      cur.filters.alpha.opacity=70;
}

/******************************************************************************/
function OpenUrl(link) {
      windowprops = "";
      text = "header Location: ".link;

      preview = window.open("", "", windowprops);
      preview.document.open();
      preview.document.write(text);
      preview.document.close();
}

/******************************************************************************/
function PreviewIMG2(url, title, left, top, width, height, scrollbars) {
    left = (screen.availWidth/2)-(width/2);
    top  = (screen.availHeight/2)-(height/2);
    newWindow = window.open(url, title, "width="+width+", height="+height+", top="+top+", left="+left+", toolbar=0, location=0, directories=0, status=0, menuBar=1, scrollBars="+scrollbars+", resizable=1");
}

/******************************************************************************/
function expand() {
    window.moveTo(screen.availWidth/2, screen.availHeight/2);

    for(x = 0; x < 55; x=x+3)
    {
      window.moveTo(screen.availWidth * -(x - 50) / 100, screen.availHeight * -(x - 50) / 100);
      window.resizeTo(screen.availWidth * x / 50, screen.availHeight * x / 50);
		  window.repaint;
			if ( (screen.availWidth * x / 50) >= 10  && (screen.availHeight * x / 50) >= 10  )
			{
			  break;
			}
    }
    return this;
}
