function submitChooseArtistForm(){
		//alert('here');
	var artist_id =document.getElementById('artist_id').value;	
	window.location.href='info.php?id='+artist_id;
}

function updateCopy(target, copy) {
	formatted = copy.replace(/\n/g, '<br />');
	document.getElementById(target).innerHTML = formatted;
}
function updatePackshot(id) {
	var img = "";
	var artist= "";
	var id = id;
	
	if(id == '13') {
		artist = 'elbow';
	}else if(id == '14') {
		artist = 'filthydukes';
	}else if(id == '5') {
		artist = 'gabriella';
	}else if(id == '6') {
		artist = 'iglu';
	}else if(id == '4') {
		artist = 'josephine';
	}else if(id == '12') {
		artist = 'laroux';
	}else if(id == '11') {
		artist = 'whitelies';
	}else if(id == '1') {
		artist = 'ladyhawk';
	}else if(id == '10') {
		artist = 'mrhudson';
	}else if(id == '8') {
		artist = 'neyo';
	}else if(id == '9') {
		artist = 'noah';
	}else if(id == '2') {
		artist = 'qtip';
	}else if(id == '7') {
		artist = 'sharleen';
	}else if(id == '15') {
		artist = 'saturdays';
	}else if(id == '3') {
		artist = 'vvbrown';
	}else if(id == '11') {
		artist = 'whitelies';
	}else if(id == '19') {
		artist = 'bryn';
	}else if(id == '20') {
		artist = 'gaga';
	}else if(id == '17') {
		artist = 'themusic';
	}else if(id == '18') {
		artist = 'garygo';
	}
	
	img = '<img src="images/packshots/big_'+ artist +'.jpg" height="200" width="200"/>';
	
	//alert(id);
	updateCopy('packshot_update', img);
}

function showAndHide(theId){ 
	var el = document.getElementById(theId) 
	if (el.style.display=="none") { 
		el.style.display="block"; //show element 
	} 
	else { 
		el.style.display="none"; //hide element 
	} 
} 

function gotoPage(strURL){
	var ajaxRequest;  // The variable that makes Ajax possible!	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			//document.myForm.time.value = ajaxRequest.responseText;
			document.getElementById("contentArea").innerHTML = ajaxRequest.responseText;
			/*Video Fix */
			/*if(strURL == "video.php"){
				vxMain();
			}*/
			initLightbox();
			myLightbox.updateImageList();
			
			
		}
	}
	ajaxRequest.open("GET", strURL, true);
	ajaxRequest.send(null);
}

function popUp(strURL){
	newwindow=window.open(strURL,'name',"menubar=no,width=668,height=608,toolbar=no,resizable=no");
	if (window.focus) {newwindow.focus()}
}
function privacy(){
	newwindow=window.open('http://www.umusic.co.uk/privacy.html','name',"menubar=no,width=560,height=608,toolbar=no,resizable=no,scrollbars=yes");
	if (window.focus) {newwindow.focus()}
}
function killEmail(theId){ 
	var el = document.getElementById(theId);
	el.value = ''; //clear
	el.disabled = true; //disable
	el.style.display="none"; //hide
}