function validarcomuser(f) {	
	if (f.name.value=='') { alert(msgComUser); return false; }
	if (f.com.value=='') { alert(msgComCom); return false; }
	return true;
	}
function rssremotedel(x) {
	if (confirm(confirmMsg)) {
		window.location='/feeds/remote-rss.php?del='+x;
		}
	}
function getBestTor(x) {
	ajxLoading("bstdownload");
	url='/shows/find_one_episode.php?g=1&q='+encodeURIComponent(x)+'&mode=json';
	new Ajax.Request(url, {   
			method: 'get',			
			onSuccess: function(data) {  
				ajxUnload("bstdownload");				
				xs=data.responseText.evalJSON();
				if (xs!="") {
					xl=encodeURIComponent(x.replace(/ /g,'-'));										
					$('bstdownload').update("<p>"+msgHotTor+": <a href=\""+xs.link+"\" target=\"_blank\">"+xs.title+"</a> <a href=\"/download/"+xl+"-last-episode/\" target=\"_blank\" class=\"rojo cursiva\">("+msgMore+")</a></p>");
					} else {
					$('bstdownload').hide();
					}
				},
			onFailure: function(data) {
				ajxUnload("bstdownload");				
				}
			});
	}	
