<!--//

// MJT - 21/02/2006 - Added
// Function to check the request an image email address.
function RequestAnImage()
{
	// Check the email address is not blank
	var strEmailAddress = document.frmRequestAnImage.txtEmailAddress.value;
	if (strEmailAddress.indexOf(" ") > 0 || strEmailAddress.indexOf("@") == -1 || strEmailAddress.indexOf(".") == -1 || strEmailAddress.length == 0) {
		window.alert ('Please enter an email address.');
	} else {
		// Submit the form.
		window.alert ('Your request has been processed and a confirmation email has been sent to you.');
		document.frmRequestAnImage.submit();
	}
}

// MJT - 28/10/2005 - Added.
// Function to change the current page to the change currency page.
// 
// lngStockSerial - The stock serial used when going back to this 
// page from the change currency page.
function ChangeCurrency( lngStockSerial )
{
	var strUrl = 'moreinfo_change_currency.asp?catalogid=' + lngStockSerial
	window.location.href = strUrl
}

function popUp(price, desc)
	{
	var mailWin;
	mailWin = window.open("email2afriend.asp?Price=" + price + "&Desc=" + escape(desc),"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=0,resizable=1,width=550,height=350');
	var browserName = navigator.appName;
	if (browserName == "Netscape")
		{
		// in Netscape the Window is dropped down slightly from centre, this lifts it a little
		mailWin.moveBy(0,-60)
		}
	}

function popUpTrack(artist, title, tracklist)
	{
	var mailWin;
	mailWin=window.open("tracklist.asp?artist=" + escape(artist) + "&title=" + escape(title)+ "&tracklist=" + escape(tracklist),"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=0,resizable=1,width=550,height=350');
	var browserName = navigator.appName;
	if (browserName == "Netscape")
		{
	// in Netscape the Window is dropped down slightly from centre, this lifts it a little
		mailWin.moveBy(0,-60)
		}
	}

function popUpTrackFile(filename)
	{
	var mailWin;
	mailWin=window.open("tracklistfromfile.asp?filename=" + escape(filename),"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=550,height=350');
	var browserName = navigator.appName;
	if (browserName == "Netscape")
		{
	//in Netscape the Window is dropped down slightly from centre, this lifts it a little
		mailWin.moveBy(0,-60)
		}
	}

	function popUpXmasFriend(price, desc)
		{
		var mailWin;
		mailWin = window.open("../shop/xmas2afriend.asp?Price=" + price + "&Desc=" + escape(desc),"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=0,resizable=1,width=550,height=450');
		var browserName = navigator.appName;
		if (browserName == "Netscape")
			{
			// in Netscape the Window is dropped down slightly from centre, this lifts it a little
			mailWin.moveBy(0,-60)
			}
	}

	// Ben 20/11/02 - Added To Hide Mail To incase of SPAM
	function emailLink(address)
		{
		window.location.href = 'mailto:' + address
		}

	//GB 15/07/04
	function CheckEmailAddress()
		{
		var strEmailAddress = document.frmSubscribeEmail.txtEmailAddress.value;
		if (strEmailAddress == 'enter email')
			{
			document.frmSubscribeEmail.txtEmailAddress.value = '';
			}
		}

	//OLI - 11/03/2002 - Function to Open Subscribe Page
	function Subscribe2PopUp(strArtistCode)
		{
		var strEmailAddress = document.frmSubscribeEmail.txtEmailAddress.value;
		if (strEmailAddress != 'enter email')
			{
			if (strEmailAddress != '')
				{
				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');
				}
			else
				{
				window.alert ('Please enter an email address to continue.');
				}
			}
		else
			{
			window.alert ('Please enter an email address to continue.');
			}
		}


//-->
