/** obsluga okna zlista osob uczesniczacych w projekcie
*/


/*inne */
function winXpos()
{
	if (window.screenX) return (window.screenX + 20);
	else if (window.screenLeft) return (window.screenLeft + 20);
	else return 0;
}
function winYpos()
{
	if (window.screenY) return (window.screenY + 20);
	if (window.screenTop) return (window.screenTop + 20);
	else return 0;
}

function openWindow(height, width,x,y, url, name)
{	
//	if ( newWindow == null || ! newWindow.focus()){
	//	newWindow = window.open(url, name, 'location=0,width='+width+', height='+height+',left='+winXpos()+',top='+winYpos()+',status=no,resizable=yes,scrollbars=yes');	
//	}
	window.open(url, name, 'location=0,width='+width+', height='+height+',left='+x+',top='+y+',status=no,resizable=yes,scrollbars=yes');	
}

function openOptionWindow(name,height, width,x,y, url, name)
{	
//	if ( newWindow == null || ! newWindow.focus()){
	//	newWindow = window.open(url, name, 'location=0,width='+width+', height='+height+',left='+winXpos()+',top='+winYpos()+',status=no,resizable=yes,scrollbars=yes');	
//	}
	window.open(url, name, 'location=0,width='+width+', height='+height+',left='+x+',top='+y+',status=no,resizable=yes,scrollbars=yes');	
}


function setRowBgColor (theRow, theColor)
{
	var theCells = null
	var c = null
	//
	if (typeof (theRow.style) == 'undefined')
        return false
	//
    if (typeof (document.getElementsByTagName) != 'undefined')
        theCells = theRow.getElementsByTagName ('td')
    else if (typeof (theRow.cells) != 'undefined')
        theCells = theRow.cells;
    else
        return false;
	//
	for (c = 0; c < theCells.length; c++)
		setCellBgColor (theCells[c], theColor)
}

function setCellBgColor (theCell, theColor)
{
	if ((typeof (window.opera) == 'undefined') && (typeof (theCell.getAttribute) != 'undefined'))
		theCell.setAttribute('bgcolor', theColor, 0)
	else
		theCell.style.backgroundColor = theColor
}


function setChangeColor (theCell, theColor)
{
	theCell.style.backgroundColor = theColor
}



function submit(formName){
	window.document.forms[formName].submit();
}

//-->
