// <![CDATA[

/* Functions to perform Control Panels. */

function doLogOut() {
	parent.location.href='/includes/inc_logout.asp';
}

function cpGoToPage(sArtist, sPage) {

	parent.location.href = '/' + sArtist + '/' + sPage;
}

function cpGoRemoveImage() {
	document.getElementById('CPshowImage').style.visibility = 'hidden';
	document.getElementById('CPhideImage').style.visibility = 'visible';
	document.getElementById('showRemoveButton').style.visibility = 'hidden';
}

function showpanel(elm) {

	document.getElementById('showjoinpanel').style.display = 'block'; 
	
	for (counter = 0; counter < elm.length; counter++) {
		if (elm[counter].checked) {
			sValue = elm[counter].value;
			if (sValue  == 'artist') {
				document.getElementById('idartistname').firstChild.nodeValue='Artist Name';
				document.getElementById('naotherurl').style.display="block";
				document.getElementById('idControlwebsite').style.display="block";

				// document.getElementById('naotherurl').disabled=false;
				// document.getElementById('idControlwebsite').disabled=false;
				// Grey out some values OR change labels

			} 
			if  (sValue  == 'fan') {
				document.getElementById('idartistname').firstChild.nodeValue='Your Name';
				//document.getElementById('naotherurl').disabled=true;
				document.getElementById('naotherurl').style.display="none";
				//document.getElementById('idControlwebsite').disabled=true;
				document.getElementById('idControlwebsite').style.display="none";
				// Grey out some values OR change labels
			}

		}
	}

}

function removeArtist(sArtistURL) {
	displayQuestion('Delete Artist','Are you sure?','deleteArtist',sArtistURL);	
}

function goDeleteMyAccount() {
	displayQuestion('Delete Account','Are you sure?','deletemyaccount','');	
}

function addCommentArtist(sArtistURL) {
	displayAddCommentDialog('Add Comment','Enter your comment below.','addCommentArtist',sArtistURL);	
}

function addArtist(sArtistURL) {
	displayQuestion('Add Artist','Are you sure?','addPerson',sArtistURL);	
}

function addFan(sFanURL) {
	displayQuestion('Add Fan','Are you sure?','addFan',sFanURL);	
}
	
function removeFan(sFanURL) {
	displayQuestion('Delete Fan','Are you sure?','removeFan',sFanURL);	
}


// ]]>