function getScreenResolution()
{
    document.getElementById("ScreenResolution").value = screen.width;
}


function openEditWindow(name, url)
{
	var nLeft = (window.screen.availWidth) / 8;
	var nTop = (window.screen.availHeight) / 8;
	var nHeight = (window.screen.availHeight) * .75;
	var nWidth = (window.screen.availWidth) * .75;
	
	var url2 = '';
	if (url.indexOf('?') > 0)
		{
		url2 = url + '&res=' + window.screen.width
		}
	else
		{
		url2 = url + '?res=' + window.screen.width
		}
		
	var theWin = window.open(url2,name,'directories=0,toolbar=no,status=no,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=' + nLeft + ',top=' + nTop + ',width=' + nWidth + ',height=' + nHeight + '')
	if (theWin) theWin.focus();
}

function divDisplay(divID)
{
	if (document.getElementById(divID).style.display == 'block')	{
		document.getElementById(divID).style.display = "none";
	}
	else	{
		document.getElementById(divID).style.display = "block";
	}
}

function divDisplaySwitch(divID, YesNoID)
{
	if (document.getElementById(YesNoID).value == 'Yes' || document.getElementById(YesNoID).value == 'yes')	{
		document.getElementById(divID).style.display = "block";
	}
	else	{
		document.getElementById(divID).style.display = "none";
	}
}

function switchPage(currentDiv, requestedDiv)
{
	divDisplay(currentDiv);
	divDisplay(requestedDiv);
}