<!--

//OLI - 27/04/2001
	function openPushPosters(strURL)
		{
		window.open (strURL, 'frmPushPosters', 'scrollbars=yes,status=yes,width=600,height=400,toolbar=yes,menubar=yes,resizable=yes,location=yes');
		}

//MJT - 05/01/2003 - Modified to return to page 1 when sorting is applied.
//MJT - 14/05/2002 - Function to sort the page.
	function SortPage(artistcode,sortType,currentPage,timeid)
		{
		window.location.href = "artistlist.asp?artistname=" + artistcode + "&page=1&sort=" + sortType + "&time=" + timeid;
		}
		

//OLI - 11/03//2002 - Function to Clear Form on Click
	function CheckEmailAddress()
		{
		var strEmailAddress = document.frmSubscribeEmail.txtEmailAddress.value;
		if (strEmailAddress == 'enter email')
			{
			document.frmSubscribeEmail.txtEmailAddress.value = '';
			}
		}

//OLI - 27/12/2001 - To bookmark and artist catalogue
	function bookmark(strTitle)
		{
		if ((navigator.appVersion.indexOf("MSIE") > 0)
		&& (parseInt(navigator.appVersion) >= 4)
		&& (navigator.appVersion.indexOf("Win") > 0))
		window.external.AddFavorite(location.href,strTitle);
		}
		
//OLI - 15/01/2002
	function GenrePopUp(strArtistCode)
		{
		var strAttributes = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=300,height=250,screenY=" + (screen.height - 335) + ",screenX=" + (screen.width - 325) + ",top=" + (screen.height - 335) + ",left=" + (screen.width - 325);
		window.open ("genre-list-popup.asp?artistcode=" + strArtistCode,"GenreListPopup",strAttributes);
		}

//OLI - 26/02/2002
	function OpenRequestNextHelpWindow()
		{
		var strAttributes = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=225,screenY=" + (screen.height - 335) + ",screenX=" + (screen.width - 325) + ",top=" + (screen.height - 335) + ",left=" + (screen.width - 325);
		window.open ("request-next-popup.htm","winRequestNext",strAttributes);
		}

	//OLI - 18/03/2003
	function OpenSearchHelpWindow()
		{
		var strAttributes = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=430,height=600,screenY=" + (screen.width - 460) + ",screenX=" + (screen.height - 680) + ",top=" + (screen.height - 680) + ",left=" + (screen.width - 460);
		window.open ("search-help.asp","winSearchHelp",strAttributes);
		}

//MJT - 26/02/2002
	function FullDiscographyPopup()
		{
		window.open ("FullDiscExp_Popup.htm","win",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=440,height=330');
		}

	//GB - 07/01/2010
	function Subscribe2PopUp(strArtistCode) {
		var strEmailAddress = document.frmSubscribeEmail.txtEmailAddress.value;
		if (strEmailAddress == 'enter email' || strEmailAddress == '') {
			window.alert ('Please enter an email address to continue.');
		} else {
			var strHyperLink = "subscribe_showstock.asp?email=" + strEmailAddress + "&artistcode=" + strArtistCode;
			window.open (strHyperLink,"ShowStockSubscribe",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=no,width=650,height=470,left=100,top=0,screenx=100,screeny=0, status=0');
		}
	}

	//OLI - 28/03/2002
	function Email(strEmailAddress)
		{
		window.location = 'mailto:' + strEmailAddress;
		}

	//OLI - 17/03/2003
	function ResubmitSearch(strSearchByChange,strSearchText)
		{
		if (strSearchByChange == 'aritst')
			{
			document.SearchFac.searchby(0).checked = true;
			document.SearchFac.submit();
			}
		if (strSearchByChange == 'title')
			{
			document.SearchFac.SearchText.value = strSearchText;
			document.SearchFac.searchby(1).checked = true;
			document.SearchFac.submit();
			}
		}
		
//-->
