function Reset() {
		self.location='dd.php?';
}


function reloadSearchBox(form) {
	var SearchVal=form.Searchword.value;
	var ArtistVal=form.Artist.options[form.Artist.options.selectedIndex].value;
	var AlbumVal=form.Album.options[form.Album.options.selectedIndex].value;
	var SongVal=form.Song.options[form.Song.options.selectedIndex].value;
	var GenreVal=form.Genre.options[form.Genre.options.selectedIndex].value;
	
		self.location='dd.php?Artist=' + ArtistVal + '&Album=' + AlbumVal + '&Song=' + SongVal + '&Genre=' + GenreVal +'&Searchword=' + SearchVal;
}

function reloadGenre(form) {

	var ArtistVal=form.Artist.options[form.Artist.options.selectedIndex].value;
	var AlbumVal=form.Album.options[form.Album.options.selectedIndex].value;
	var SongVal=form.Song.options[form.Song.options.selectedIndex].value;
	var GenreVal=form.Genre.options[form.Genre.options.selectedIndex].value;
	
		self.location='dd.php?Artist=*&Genre=' + GenreVal + '&Artist=' + ArtistVal + '&Album=' + AlbumVal;
}



function reloadSong(form) {


	var ArtistVal=form.Artist.options[form.Artist.options.selectedIndex].value;
	var AlbumVal=form.Album.options[form.Album.options.selectedIndex].value;
	var SongVal=form.Song.options[form.Song.options.selectedIndex].value;
	var GenreVal=form.Genre.options[form.Genre.options.selectedIndex].value;
	
		if (GenreVal && GenreVal != '*') {
			self.location='dd.php?Song=' + SongVal + '&Genre=' + GenreVal + '&Artist=' + ArtistVal + '&Album=' + AlbumVal + '#PageDisplay';
		} else if (ArtistVal && ArtistVal != '*') {
				if (AlbumVal && AlbumVal != '*') {
				self.location='dd.php?Artist=' + ArtistVal + '&Album=' + AlbumVal + '&Song=' + SongVal +'#PageDisplay';
				} else {
					self.location='dd.php?Artist=' + ArtistVal + '&Album=' + AlbumVal + '&Song=' + SongVal +'#PageDisplay';
				  }
		} else if (AlbumVal && AlbumVal != '*') {
				self.location='dd.php?Album=' + AlbumVal + '&Song=' + SongVal +'#PageDisplay';
			} 
				else {
				self.location='dd.php?Song=' + SongVal +'#PageDisplay';
				}
}






	
function reloadAlbum(form) {

	var ArtistVal=form.Artist.options[form.Artist.options.selectedIndex].value;
	var AlbumVal=form.Album.options[form.Album.options.selectedIndex].value;
	var SongVal=form.Song.options[form.Song.options.selectedIndex].value;
	var GenreVal=form.Genre.options[form.Genre.options.selectedIndex].value;
	
	if (AlbumVal == '*') {
		self.location='dd.php?Album=' + AlbumVal + '&Genre=' + GenreVal + '&Artist=' + ArtistVal + '&Pos=Form';
	}
		else {
			self.location='album.php?Album=' + AlbumVal + '&Genre=' + GenreVal + '&Artist=' + ArtistVal + '&Pos=Form';
		}	
			
}

function reloadArtist(form) {

	var ArtistVal=form.Artist.options[form.Artist.options.selectedIndex].value;
	var AlbumVal=form.Album.options[form.Album.options.selectedIndex].value;
	var SongVal=form.Song.options[form.Song.options.selectedIndex].value;
	var GenreVal=form.Genre.options[form.Genre.options.selectedIndex].value;
	
		
			self.location='dd.php?Artist=' + ArtistVal + '&Genre=' + GenreVal + '&Album=' + AlbumVal; 
		
}

function reloadListAmount(form, query, page) {

	var ArtistVal=document.Filter.Artist.options[document.Filter.Artist.options.selectedIndex].value;
	var AlbumVal=document.Filter.Album.options[document.Filter.Album.options.selectedIndex].value;
	var SongVal=document.Filter.Song.options[document.Filter.Song.options.selectedIndex].value;
	var GenreVal=document.Filter.Genre.options[document.Filter.Genre.options.selectedIndex].value;
	var LimitVal=form.ListAmount.options[form.ListAmount.options.selectedIndex].value;
	
		self.location='dd.php?Query=' + query + '&Page=' + page + '&Limit=' + LimitVal +  '&Artist=' + ArtistVal + '&Album=' + AlbumVal + '&Genre=' + GenreVal + '&Submit=Submit#PageDisplay'; 
	


}

