/* **** SEARCH ****  */
function searchClick(){
	var wordsToSearch  = $("#txtWordsToSearch")[0].value;
	if(wordsToSearch == ""){return;}

	$.ajax({
		type: "POST",
		url: "vzService/search.php",
		data: "clientID="+thisClient.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("no videos returned for this search.");
				}
			}catch(exception){
				alert("no videos returned for this search.");
			}
		}
	});
}

