function addBand(event_id) {
	document.manage_events.action = 'manage_events.php?action=band&edit='+event_id;
	document.manage_events.submit();
}

function addBandPublic_old(event_id) {
	var band_id = document.events_submit.band.options[document.events_submit.band.selectedIndex].value;
	window.location='events_submit.band.options.php?edit=$db->insert_id';
}

function addGenre(band_id) {
	document.manage_bands.action = 'manage_bands.php?action=genre&edit='+band_id;
	document.manage_bands.submit();
}

function deleteGenre(genre_id, genre) {
	var name=confirm("Are you sure you want to delete "+genre+" from the genres?");
	if (name==true){
		document.manage_genres.action = 'manage_genres.php?delete='+genre_id;
		document.manage_genres.submit();
	}
}

function deleteBandGenre(genre_id,event_id,genre) {
	var name=confirm("Are you sure you want to delete "+genre+" from the genre list?");
	if (name==true){
		document.manage_bands.action = 'manage_bands.php?genre='+genre_id+'&edit='+event_id;
		document.manage_bands.submit();
	}
}

function deleteBandEvent(bandevent_id,event_id,band) {
	var name=confirm("Are you sure you want to delete "+band+" from the band list?");
	if (name==true){
		document.manage_events.action = 'manage_events.php?bandevent='+bandevent_id+'&edit='+event_id;
		document.manage_events.submit();
	}
}

function deleteEvent(event_id,event) {
	var name=confirm("Are you sure you want to delete "+event+"?");
	if (name==true){
		document.manage_events.action = 'manage_events.php?delete='+event_id;
		document.manage_events.submit();
	}
}

function deleteBand(band_id,band) {
	var name=confirm("Are you sure you want to delete "+band+"?");
	if (name==true){
		document.manage_bands.action = 'manage_bands.php?delete='+band_id;
		document.manage_bands.submit();
	}
}

function deleteVenue(venue_id,venue) {
	var name=confirm("Are you sure you want to delete "+venue+"?");
	if (name==true){
		document.manage_venues.action = 'manage_venue.php?delete='+venue_id;
		document.manage_venues.submit();
	}
}

function deleteUsers(use_id,use) {
	var name=confirm("Are you sure you want to delete "+use+"?");
	if (name==true){
		document.manage_profiles.action = 'manage_users.php?delete='+use_id;
		document.manage_profiles.submit();
	}
}

function sendEvent(use_id) {		
	 new_window1 = window.open ("events_send.php?send="+use_id,"mywindow","screenX=100,screenY=20,left=100,top=20',status=no,address=no,menubar=no,resizable=0,width=350,height=325,scrollbars=no");
	 if (window.focus) {new_window1.focus()}	
}

function adminMessages(use_id) {		
	 new_window1 = window.open ("../admin/dashboard_messages_reply.php?send="+use_id,"mywindow","screenX=100,screenY=20,left=100,top=20',status=no,address=no,menubar=no,resizable=0,width=400,height=600,scrollbars=yes");
	 if (window.focus) {new_window1.focus()}	
}

function radio() {		
	 new_window1 = window.open ("cultiv8_radio.php","mywindow","screenX=100,screenY=20,left=100,top=20',status=no,address=no,menubar=no,resizable=0,width=220,height=340,scrollbars=no");
	 if (window.focus) {new_window1.focus()}	
}
	
	
function load_map(id)
	{
		 new_window2 = window.open ("http://cultiv8.com/map.php?load="+id,"mywindow","screenX=100,screenY=20,left=100,top=20',status=no,address=no,menubar=no,resizable=1,width=518,height=400,scrollbars=yes");
		 if (window.focus) {new_window2.focus()}
	}
