        
function popup(a,w,h, sceneid) {
	file="bigpic.pet?picid="+a;
	if (sceneid > 0) {
		file=file+"&sceneid="+sceneid;
	}
	w+=20;
	h+=40;
        hwnd = open(file,"DisplayWindow","width="+w+",height="+h+",status=no,menubar=no,scrolling=no");
        hwnd.focus();
        
}

function mempopup(a,w,h) {
	file="membigpic.pet?sceneid="+a;
	w+=20;
	h+=40;
        hwnd = open(file,"DisplayWindow","width="+w+",height="+h+",status=no,menubar=no,scrolling=no");
        hwnd.focus();
        
}

function setPointer(theCell, thePointerColor)
{  
    if (thePointerColor == '' || typeof(theCell.style) == 'undefined') {
        return false;
    }
    
	what="solid 1px "+thePointerColor+"";
        theCell.style.border = what;

    return true;
}
function setPointer2(theRow, thePointerColor)
{  
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }
    
    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
}

