	function showCustom() {
		if(document.getElementById('addCustom').style.display == 'none') {
			document.getElementById('addCustom').style.display = 'block';
		} else {
			document.getElementById('addCustom').style.display = 'none';
		}
	}
	
	function showHideNote(whatID){
		if(document.getElementById(whatID).style.display == 'none') {
			document.getElementById(whatID).style.display = 'block';
		} else {
			document.getElementById(whatID).style.display = 'none';
		}
	}
	
	function top100(){
		if(document.getElementById('Top100').style.display == 'block') {
			document.getElementById('Top100').style.display = 'none';
			document.getElementById('btnTop100').value = "Show Top 25 Requests";
		} else {			
			document.getElementById('Top100').style.display = 'block';
			document.getElementById('btnTop100').value = "Hide Top 25 Requests";
		}
	}
	
	var newwin;
	function launchwin(winurl,winname,winfeatures)
	{
		newwin = window.open(winurl,winname,winfeatures);
		if(javascript_version > 1.0)
		{
	 		setTimeout('newwin.focus();',250);
		}
	}
	
	function quickNote(whatForm,whatCombo,whatText) {
		if(whatCombo.value != "") {
			var myText = whatForm[whatText];		
			whatForm.txtNote.value = whatCombo.value;
			whatForm.submit();
		}
	}
	
	function checkSearch() {
		var search1 = window.document.frmMusicSearch.cmbSearch1.value;
			var t1 = window.document.frmMusicSearch.txtSearch1.value;
			var g1 = window.document.frmMusicSearch.cmbGenre1.value;
			var d1 = window.document.frmMusicSearch.cmbDanceStep1.value;
			var s1 = window.document.frmMusicSearch.cmbSpecialDance1.value;
			
		var search2 = window.document.frmMusicSearch.cmbSearch2.value;
			var t2 = window.document.frmMusicSearch.txtSearch2.value;
			var g2 = window.document.frmMusicSearch.cmbGenre2.value;
			var d2 = window.document.frmMusicSearch.cmbDanceStep2.value;
			var s2 = window.document.frmMusicSearch.cmbSpecialDance2.value;
			
		var search3 = window.document.frmMusicSearch.cmbSearch3.value;
			var t3 = window.document.frmMusicSearch.txtSearch3.value;
			var g3 = window.document.frmMusicSearch.cmbGenre3.value;
			var d3 = window.document.frmMusicSearch.cmbDanceStep3.value;
			var s3 = window.document.frmMusicSearch.cmbSpecialDance3.value;
		
		if (search1 == "" && search2 == "" && search3 == "") {
			alert("You must select something to search for!");
			return false;
		} else {
			switch (search1) {
				case "Artist":
					if(t1 == "") {
						window.document.frmMusicSearch.txtSearch1.style.borderColor = "Red";
						alert("You must enter an Artist to search for.");
						return false;						
					}
					
					break;
					
				case "Song":
					if(t1 == "") {
						window.document.frmMusicSearch.txtSearch1.style.borderColor = "Red";
						alert("You must enter an Song Title to search for.");
						return false;						
					}
					
					break;
					
				case "Genre":
					if(g1 == "") {
						window.document.frmMusicSearch.cmbGenre1.style.borderColor = "Red";
						alert("You must select a Genre to search for.");
						return false;						
					}
					
					break;
					
				case "Step":
					if(d1 == "") {
						window.document.frmMusicSearch.cmbDanceStep1.style.borderColor = "Red";
						alert("You must select a Dance Step to search for.");
						return false;						
					}
					
					break;
					
				case "Special":
					if(s1 == "") {
						window.document.frmMusicSearch.cmbSpecialDance1.style.borderColor = "Red";
						alert("You must select a Special Dance to search for.");
						return false;						
					}
					
					break;
			}
			
			switch (search2) {
				case "Artist":
					if(t2 == "") {
						window.document.frmMusicSearch.txtSearch2.style.borderColor = "Red";
						alert("You must enter an Artist to search for.");
						return false;						
					}
					
					break;
					
				case "Song":
					if(t2 == "") {
						window.document.frmMusicSearch.txtSearch2.style.borderColor = "Red";
						alert("You must enter an Song Title to search for.");
						return false;						
					}
					
					break;
					
				case "Genre":
					if(g2 == "") {
						window.document.frmMusicSearch.cmbGenre2.style.borderColor = "Red";
						alert("You must select a Genre to search for.");
						return false;						
					}
					
					break;
					
				case "Step":
					if(d2 == "") {
						window.document.frmMusicSearch.cmbDanceStep2.style.borderColor = "Red";
						alert("You must select a Dance Step to search for.");
						return false;						
					}
					
					break;
					
				case "Special":
					if(s2 == "") {
						window.document.frmMusicSearch.cmbSpecialDance2.style.borderColor = "Red";
						alert("You must select a Special Dance to search for.");
						return false;						
					}
					
					break;
			}
			
			switch (search3) {
				case "Artist":
					if(t3 == "") {
						window.document.frmMusicSearch.txtSearch3.style.borderColor = "Red";
						alert("You must enter an Artist to search for.");
						return false;						
					}
					
					break;
					
				case "Song":
					if(t3 == "") {
						window.document.frmMusicSearch.txtSearch3.style.borderColor = "Red";
						alert("You must enter an Song Title to search for.");
						return false;						
					}
					
					break;
					
				case "Genre":
					if(g3 == "") {
						window.document.frmMusicSearch.cmbGenre3.style.borderColor = "Red";
						alert("You must select a Genre to search for.");
						return false;						
					}
					
					break;
					
				case "Step":
					if(d3 == "") {
						window.document.frmMusicSearch.cmbDanceStep3.style.borderColor = "Red";
						alert("You must select a Dance Step to search for.");
						return false;						
					}
					
					break;
					
				case "Special":
					if(s3 == "") {
						window.document.frmMusicSearch.cmbSpecialDance3.style.borderColor = "Red";
						alert("You must select a Special Dance to search for.");
						return false;						
					}
					
					break;
			}
		}
		
		return true;
	}
	
	function searchStuff(theNum) {
		var myDiv = document.getElementById('specialSongs');
		
		if(theNum == "1") {
			if(window.document.frmMusicSearch.cmbSearch1.value == "Artist") {
				window.document.frmMusicSearch.txtSearch1.style.display = "block";
				window.document.frmMusicSearch.cmbGenre1.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep1.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance1.style.display = "none";
	
			} else if(window.document.frmMusicSearch.cmbSearch1.value == "Song") {
				window.document.frmMusicSearch.txtSearch1.style.display = "block";
				window.document.frmMusicSearch.cmbGenre1.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep1.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance1.style.display = "none";
				
			} else if(window.document.frmMusicSearch.cmbSearch1.value == "Genre") {
				window.document.frmMusicSearch.txtSearch1.style.display = "none";
				window.document.frmMusicSearch.cmbGenre1.style.display = "block";
				window.document.frmMusicSearch.cmbDanceStep1.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance1.style.display = "none";
				
			} else if(window.document.frmMusicSearch.cmbSearch1.value == "Step") {
				window.document.frmMusicSearch.txtSearch1.style.display = "none";
				window.document.frmMusicSearch.cmbGenre1.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep1.style.display = "block";
				window.document.frmMusicSearch.cmbSpecialDance1.style.display = "none";
				
			} else if(window.document.frmMusicSearch.cmbSearch1.value == "Special") {
				window.document.frmMusicSearch.txtSearch1.style.display = "none";
				window.document.frmMusicSearch.cmbGenre1.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep1.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance1.style.display = "block";
				
			} else {
				window.document.frmMusicSearch.txtSearch1.style.display = "none";
				window.document.frmMusicSearch.cmbGenre1.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep1.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance1.style.display = "none";
			}
		} else if(theNum  == "2") {
			if(window.document.frmMusicSearch.cmbSearch2.value == "Artist") {
				window.document.frmMusicSearch.txtSearch2.style.display = "block";
				window.document.frmMusicSearch.cmbGenre2.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep2.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance2.style.display = "none";
	
			} else if(window.document.frmMusicSearch.cmbSearch2.value == "Song") {
				window.document.frmMusicSearch.txtSearch2.style.display = "block";
				window.document.frmMusicSearch.cmbGenre2.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep2.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance2.style.display = "none";
				
			} else if(window.document.frmMusicSearch.cmbSearch2.value == "Genre") {
				window.document.frmMusicSearch.txtSearch2.style.display = "none";
				window.document.frmMusicSearch.cmbGenre2.style.display = "block";
				window.document.frmMusicSearch.cmbDanceStep2.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance2.style.display = "none";
				
			} else if(window.document.frmMusicSearch.cmbSearch2.value == "Step") {
				window.document.frmMusicSearch.txtSearch2.style.display = "none";
				window.document.frmMusicSearch.cmbGenre2.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep2.style.display = "block";
				window.document.frmMusicSearch.cmbSpecialDance2.style.display = "none";
				
			} else if(window.document.frmMusicSearch.cmbSearch2.value == "Special") {
				window.document.frmMusicSearch.txtSearch2.style.display = "none";
				window.document.frmMusicSearch.cmbGenre2.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep2.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance2.style.display = "block";
				
			} else {
				window.document.frmMusicSearch.txtSearch2.style.display = "none";
				window.document.frmMusicSearch.cmbGenre2.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep2.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance2.style.display = "none";
			}
		} else if(theNum  == "3") {
			if(window.document.frmMusicSearch.cmbSearch3.value == "Artist") {
				window.document.frmMusicSearch.txtSearch3.style.display = "block";
				window.document.frmMusicSearch.cmbGenre3.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep3.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance3.style.display = "none";
	
			} else if(window.document.frmMusicSearch.cmbSearch3.value == "Song") {
				window.document.frmMusicSearch.txtSearch3.style.display = "block";
				window.document.frmMusicSearch.cmbGenre3.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep3.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance3.style.display = "none";
				
			} else if(window.document.frmMusicSearch.cmbSearch3.value == "Genre") {
				window.document.frmMusicSearch.txtSearch3.style.display = "none";
				window.document.frmMusicSearch.cmbGenre3.style.display = "block";
				window.document.frmMusicSearch.cmbDanceStep3.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance3.style.display = "none";
				
			} else if(window.document.frmMusicSearch.cmbSearch3.value == "Step") {
				window.document.frmMusicSearch.txtSearch3.style.display = "none";
				window.document.frmMusicSearch.cmbGenre3.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep3.style.display = "block";
				window.document.frmMusicSearch.cmbSpecialDance3.style.display = "none";
				
			} else if(window.document.frmMusicSearch.cmbSearch3.value == "Special") {
				window.document.frmMusicSearch.txtSearch3.style.display = "none";
				window.document.frmMusicSearch.cmbGenre3.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep3.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance3.style.display = "block";
				
			} else {
				window.document.frmMusicSearch.txtSearch3.style.display = "none";
				window.document.frmMusicSearch.cmbGenre3.style.display = "none";
				window.document.frmMusicSearch.cmbDanceStep3.style.display = "none";
				window.document.frmMusicSearch.cmbSpecialDance3.style.display = "none";
			}
		}
	}
	
	function showMsgBox(theMessage) {
		alert(theMessage);
	}
	
	function checkCustom() {
		var searchSong = window.document.frmCustom.txtCustSong.value;
		var searchArtist = window.document.frmCustom.txtCusArtist.value;
		
		if(searchSong == '' | searchArtist == '') {
			alert('You must enter a song and artist.');
			return false;
		} else {
			return true;
		}
	}