function uv(id) {
   window.open('/foros/usuview.cfm?id='+id, 'uv','scrollbars=yes,status=no,toolbar=no,directories=no,menubar=no,resizable=yes,width=450,height=300')
}

function vermotivo(m) {
	var mot = document.getElementById(m);
	if ( mot.style.display == 'none' ) {
		mot.style.display='block';
	} else {
		mot.style.display='none';
	}	
}
function ShowEmbed ( swfurl, id ) {
	var idv = document.getElementById('v'+id);
	var idi = document.getElementById('i'+id);
	// idv.innerHTML = swfembed (swfurl,248,200,'#0000');
	idi.style.display='none';
	idv.innerHTML = '<embed src="' + swfurl + '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed>';
}
function verRespuesta (respuesta, respRow, currentRow, currentPage, rowsPerPage) {
	var firstRowInPage = parseInt(((currentPage-1) * rowsPerPage ) + 1);
	var lastRowInPage = parseInt(((currentPage-1) * rowsPerPage ) + rowsPerPage);
	if ( respRow > firstRowInPage && respRow < lastRowInPage ) {
		var dl = document.location;
		/* Esta reiteracion la hago porque si no me puede repetir el hash (#) */
		document.location.href = "http://" + dl.host + dl.pathname + dl.search + "#" + respuesta;
	} else {
		var respPage = Math.ceil(respRow/rowsPerPage);
		var msjpath = document.location.href.split('?',1)[0].split('#',1)[0].replace(/\.p\.[0-9]*/,'').replace(/\.r\.[0-9]*/,'').replace(/.htm/,'');
		var redirPage = msjpath + ( respPage == 1 ? '' : '.r.' + rowsPerPage + '.p.' + respPage ) + '.htm#' + respuesta;
		document.location.href = redirPage;
	}
	
}

var votos=0;
function solovotos(on) {
	var aTRs = document.getElementsByTagName('TR');
	// votos = ( votos ? 0 : 1) ;
	for ( var i = 0; i < aTRs.length; i++ ) {
			tr = aTRs[i];
			if(  tr.id.indexOf('novoto') == 0 ) { 
				if( on ) { 
					tr.style.display='none';
				}
				else { 
					tr.style.display=''; //block http://www.webdeveloper.com/forum/showthread.php?t=104604
				}
			} 
	}
	return;
}