function setBgColor(id, bgcolor) {
    if (document.getElementById) {
        document.getElementById(id).style.backgroundColor = bgcolor;
    }
}

function newWindow(goto, w, h) {
	myobj=window.open(goto,'mywin','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resize=1,width=' + w + ',height=' + h + '');
	myobj.moveTo(0,0);
	myobj.focus();
}

function popupWindow(goto, w, h, name) {

    width = parseInt(w);
    height = parseInt(h);

    if (!width)
        width = 800;

    if (!height)
        height = 600;

	if (!name)
		name = 'newWindow';
		
    return window.open(goto, name, 'width='+width+', height='+height+', toolbar=no, status=no, scrollbars=no, resizable=no, menubar=no, location=no, direction=no');
}