/**
 * This code was originally created by http://www.qloud.com/. Some of the code might have been added or changed.
 * You can view the original source here: http://www.qloud.com/qloud_facebook/js/musical_poke_left.js
 */
function Validate(app_url)
{
	try	{
	
		var the_id=null;
		var qryStr="";		
			
			if ( _e('the_id').value != "")
			{			
				the_id = _e('the_id').value;
					
			}
			
			if (!the_id) 
			{
				alert ('Please select an artist!');
				return false;
			}
			else
			{
				qryStr+="&the_id="+the_id;
			}
  			
  			parent.location.href =app_url+"index.php?page=musical_poke&action=send"+qryStr;
			
			
				
		}
		catch (err)
		{
			trace(err);
		}
}
function artist_focus(val)
{
		if (val)
		{
			if (this.value=='Search Artist Here') this.value='';
			//_e('small_suggest').style.backgroundColor="#3c3c3c";
			//_e('small_suggest').style.background_color="#3c3c3c";
			_e('small_suggest').style.display="block";
			_e('small_suggest').innerHTML="<div class='typeahead_message'>Start typing an Artist Name</div>";
		}
		else
		{
			if (this.value=='') this.value='Search Artist Here';
			
		}
			
}

