function DoGenreSearch(baseURL, genre)
{
parent.frames[0].genre=genre;
  // Use post to be able to use special character in genre (R+B - escape doesn't work!)
/*
  document.SearchGenreForm.genre.value = genre ;
  document.SearchGenreForm.action = baseURL + 'Call?htmltemplate=./startpage/startsearchpage.htm' ;
  document.SearchGenreForm.submit() ;
*/

  var URLGenre = URLencode(genre) ;
  //alert(URLGenre);
  self.location.href = baseURL + 'Call?htmltemplate=./startpage/startsearchpage.htm&genre=' + URLGenre ;
}


function DoArtistSearch(baseURL, artist , genre)
{
  // Use post to be able to use special character in genre (R+B - escape doesn't work!)
/*
  document.SearchGenreForm.genre.value = genre ;
  document.SearchGenreForm.action = baseURL + 'Call?htmltemplate=./startpage/startsearchpage.htm' ;
  document.SearchGenreForm.submit() ;
*/

  var URLGenre = URLencode(genre) ;
  //alert(genre);
  var URLArtist = URLencode(artist) ;
  //alert(baseURL + 'Call?htmltemplate=./artist/view.htm&artist=' + URLArtist);
  self.location.href = baseURL + 'Call?htmltemplate=./artist/view.htm&genre=' + genre + '&artist=' + artist ;
}


function URLencode(sStr)
{
  return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g, '%22').replace(/\'/g,'%27') ;
}

function Newsletter(nextTempl, errTxt)
{
 var emailFld=document.getElementById('NL');
 //alert(emailFld.value);
  if (trim(emailFld.value) == '')
    alert(errTxt) ;
  else if (ValEMail(emailFld, errTxt))
    self.location.href = nextTempl + '&email=' + emailFld.value ;
}