/* *** SEARCH *** */

function searchClick(){
	 wordsToSearch  = $("#txtWordsToSearch")[0].value;

	if(wordsToSearch == ""){return;}

	// $("#playlist_scroller").html("");
	$.ajax({
		type: "POST",
		url: "vzService/search.php",
		data: "clientID="+thisChannel.ClientID+"&channelID="+thisChannel.ChannelID+"&wordsToSearch="+wordsToSearch+"",
		contentType: CONTENT_TYPE,
	
		success: function(msg){ 
//			alert(msg);

		  	try{
				eval(msg);
			
				if(searchContentArray[0].Title != ""){
					currentlyShowing = 'search';
					buildPlaylistContent();
					playVideo(0, currentlyShowing);
			}else{
					alert("yyy- No se han encontrado resultados.");
				}
			}catch(exception){
				alert("zzz- No se han encontrado resultados.");
			}
		}
	});
}



