
function updatezoom()
{
	if (event.keyCode != 13) return;
	
	if (isNaN(zoomfactor.value))
	{
		alert('Please enter a number between 1 and 999');
		zoomfactor.value = 100;
		zoomfactor.focus();
		zoomfactor.select();
	}
	
	container.style.zoom = zoomfactor.value + '%';
}

function zoomInAndOut(string)
{
    increment = 5;
    if (isNaN(zoomfactor.value) || (zoomfactor.value == ''))
    
    	zoomfactor.value = 100;
    currZoom = zoomfactor.value;
    //currZoom = currZoom.substring(0, currZoom.length - 1);
    currZoom = parseInt(currZoom, 10);
 
  if (string == 'in')
	newZoom = currZoom + increment;
  else if (string == 'out')
    newZoom = currZoom - increment;

	if ((newZoom > 500) || (newZoom < 25)) return;
	zoomfactor.value = newZoom;
	//container.style.zoom = newZoom + '%';
	container.style.fontSize = newZoom  + '%';
}

function changeColors(fcolor, bcolor)
{
		
		if (fcolor != '')
				container.style.color = fcolor;
		if (bcolor != '')
			container.style.backgroundColor = bcolor;  //document.all['abc'].classname='.enlarge'" 	//document.all['mycell'].style.color='red'; 	//alert("hi");
}

function changeFont(font)
{
		if (font != '')
				container.style.fontFamily = font;
}

function changeSpacing(spacing)
{
		if (spacing != '')
				container.style.lineHeight = spacing + '%';
}


