// ------------------------------------------------------- 
//                      S E A R C H
// ------------------------------------------------------- 
function clickclear(thisfield, defaulttext) {
  if (thisfield.value == defaulttext) {
    thisfield.value = "";
    thisfield.style.color="#000000";
  }
}

function clickrecall(thisfield, defaulttext) {
  if (trim(thisfield.value) == "") {
    thisfield.value = defaulttext;
    thisfield.style.color="#9A9A9A";
  }
}

function trim (myString)
{
return myString.replace(/^\s+/g,'').replace(/\s+$/g,'')
} 

function nextTrack(id_party, id_playlist, update, mode) {
  //alert(id_party + " " + id_playlist + " " + update + " " + mode);
  new Ajax.Updater(update, '/index.php/mp3/playAjax/go/next/id_playlist/'+id_playlist+'/id_party/'+id_party+'/mode/'+mode, {asynchronous:true, evalScripts:true}); return false;
}

function prevTrack(id_party, id_playlist, update, mode) {
  new Ajax.Updater(update, '/index.php/mp3/playAjax/go/prev/id_playlist/'+id_playlist+'/id_party/'+id_party+'/mode/'+mode, {asynchronous:true, evalScripts:true}); return false;
}
// ------------------------------------------------------- 
//                  E N D   S E A R C H
// -------------------------------------------------------
