// contectual form controls, use radio buttons to swap divs in and out
var oldObject = null;
function swapForm(objectID)
{
	var object = document.getElementById(objectID);
	if (oldObject) oldObject.style.display = 'none';
	object.style.display = 'block';
	oldObject = object;
}
			

function openWin(strPage,intHeight,intWidth,strMenuBar,strStatus,strScroll)
{
	var ua = window.navigator.userAgent;
	var msie = ua.indexOf("MSIE");
	var wleft,wtop,wname,wnamep,wprops,page,scrolli,status,menubar;
	wname='PMEWin'+strMenuBar+strStatus+strScroll;
	intLeft = (screen.width - intWidth) / 2;
	intTop = (screen.height - intHeight) / 2;
	wprops = 'height='+intHeight+',width='+intWidth+',top='+intTop+',left='+intLeft+',scrollbars='+strScroll+',resizable=yes,toolbar=no,menubar='+strMenuBar+',status='+strStatus;
	wObject = window.open(strPage,wname,wprops);
	
	if (wObject.resizeTo) setTimeout("wObject.resizeTo("+(intWidth+12)+","+(intHeight+31)+")",100);
	if (wObject.moveTo) setTimeout("wObject.moveTo("+intLeft+","+intTop+")",100);
	
	if ((parseInt(ua.substring(msie+5,ua.indexOf( ".",msie)))>=4 && document.all) || document.layers || document.getElementById) {
		if (wObject.focus) {setTimeout("wObject.focus();",200);}
	}
}
		
			
