function getObj(obj) { 
	return document.getElementById(obj);
}

function getHeight(obj) { 
	return document.getElementById(obj).offsetHeight;
}

function getWidth(obj) { 
	return document.getElementById(obj).offsetWidth;
}

function getFullHeight(obj) { 
	return document.getElementById(obj).offsetTop + document.getElementById(obj).offsetHeight;
}

function getTop(obj) { 
	return document.getElementById(obj).offsetTop;
}

		
function setTop(obj, value) { 
	document.getElementById(obj).style.top = value + "px"; 
}
			
function setHeight(obj, value) { 
	document.getElementById(obj).style.height = value + "px"; 
}
			
function setDisplay(obj, value) { 
	document.getElementById(obj).style.display = value; 
}
			
function exist(obj) {
	if (document.getElementById(obj)) return true;
	else return false;
} 

function setRighColFooter(maxH) {
	if ((getFullHeight("right_column") + 7) < maxH) {
		setHeight("right_column_footer", (maxH - getFullHeight("right_column") - 7));
		setTop("right_column_footer", getFullHeight("right_column"));
		setDisplay("right_column_footer", "block");
	}
}


function viewOriginal(image) {
	window.open(image,'Ingrandimento','status=no, resizable=yes, scrollbars=yes, width=540, height=500');
}

function viewPrintable(url) {
	window.open(url,'Print','status=no, resizable=yes, scrollbars=yes, width=610, height=500');
}

function doSubmit(formName) { document.getElementById(formName).submit(); }
