var letra = 12;
var inter_letra = 1;
var letra_max = 18;
var letra_min = 10;

function augLet(){
	if (letra_max!=letra){
		letra = letra + inter_letra;
		document.getElementById('contentTxt').style.fontSize = letra+"px";
		document.getElementById('contentTxt').style.lineHeight = letra+(inter_letra*3)+"px";
	}
}

function disLet(){
	if (letra_min!=letra){
		letra = letra - inter_letra;
		document.getElementById('contentTxt').style.fontSize = letra+"px";
		document.getElementById('contentTxt').style.lineHeight = letra+(inter_letra*3)+"px";
	}
}

function imprimir(iddoc){
	width = 502; 
	height = 450; 
	leftPosition = 0;
	topPosition = 0;
	leftPosition = (screen.width) ? (screen.width-width)/2 : 0;
	if (screen.height && (screen.height <= 600)) {
		topPosition = 0;
	} else {
		topPosition = (screen.height) ? (screen.height-height)/2 : 0;
	}
	var settings='width='+width+', height='+height+', left='+leftPosition+', top='+topPosition+', toolbar=0, location=0, directories=0, menubar=0, scrollbars=1, resizable=0, status=0';
	var popup=window.open("modules.php?name=webstructure&file=print&idwebstructure="+iddoc, '', settings);
	popup.focus();
}

	function getRadioValue(idOrName) {
			var value = null;
			var element = document.getElementById(idOrName);
			var radioGroupName = null;  
			
			// if null, then the id must be the radio group name
			if (element == null) {
					radioGroupName = idOrName;
			} else {
					radioGroupName = element.name;     
			}
			if (radioGroupName == null) {
					return null;
			}
			var radios = document.getElementsByTagName('input');
			for (var i=0; i<radios.length; i++) {
					var input = radios[ i ];    
					if (input.type == 'radio' && input.name == radioGroupName && input.checked) {                          
							value = input.value;
							break;
					}
			}
			return value;
	}
