// Confirm whenever you want to perform an action
function confirma(eid) {
	rconf = confirm('¿Estás seguro de ' + eid + '?', 2);
	return rconf;
}

// Shows hidden element or hide block element
function show_hide( divToHide ) {
	var elem, vis;
	if( document.getElementById ) // this is the way the standards work
		elem = document.getElementById( divToHide );
	else if( document.all ) // this is the way old msie versions work
		elem = document.all[divToHide];
	else if( document.layers ) // this is the way nn4 works
		elem = document.layers[divToHide];
	vis = elem.style;
	if(vis.display == 'block') {
		vis.display = 'none';
	} else {
		vis.display = 'block';
	} 
}
