function fontZoom(size)
{
 document.getElementById('fontzoom').style.fontSize=size+'px'
}

// trim string
function trim( s ) {
	if ( s==null || s=="" ) {
		return "";
	}
	var Str = new String( s );
	var newstr = Str.replace( /^\s*/, "" );
	return ( newstr.replace(/\s*$/,"") );
}

function switchCell(n) {
	nc=document.getElementsByName("panelcell"); 
	cg=document.getElementsByName("tabtable"); 
	if(nc){
		for(i=0;i<nc.length;i++){
			nc.item(i).className="Off1";
			cg.item(i).style.display = "none";
		}
		nc.item(n-1).className="On1";
		cg.item(n-1).style.display = "inline";
	}
}