function ChangeFontSize(add){
	var minFontSize=8,maxFontSize=12;
	var oldSize = parseInt(document.body.style.fontSize,10);
	if (isNaN(oldSize)) oldSize = parseInt(FindRule(document.styleSheets[0],'body').style.fontSize,10);
	var newSize = oldSize+add;
	newSize = Math.max(Math.min(newSize,maxFontSize),minFontSize);
	document.body.style.fontSize=newSize+'pt';

	(/cpovisq=([^&]+)/i).test(location.search);
	var visID = RegExp.$1;
	var commbadge=new Image();
	commbadge.src=approot+"savebasefontsize.asp?size="+newSize+"pt&nocache="+((new Date())*1)+"&cpovisq="+visID;
	//window.open(commbadge.src,'fontpop');
	if (isIE && isMac) window.resizeBy(add>0?1:-1,0);
}


function Glow(){ this.src=this.src.replace('off','on') }
function DeGlow(){ this.src=this.src.replace('on','off') }
//Needed to work around display bugs
var ua = navigator.userAgent.toLowerCase();
var isIE = /msie/.test(ua) && !/opera/.test(ua);
var isMac = /mac/.test(ua);

function Find(oID){ return document.getElementById?document.getElementById(oID):document.all?document.all[oID]:null }

// Find the value of the currently selected radio button in a form by the set's name
function RadioButtonValue(frm,radioName){
	var radios = frm.elements[radioName];
	for (var i=0,len=radios.length;i<len;i++) if (radios[i].checked) return radios[i].value;
	return null;
}
