first_name.border = true;
first_name.borderColor = 0x999999;

var newwindow;

function popitup(url) {
	//document.getElementById('flashPlayer').style.display = 'none';
	
	newwindow=window.open(url,'name','height=325,width=250,left=900,top=0,scrollbars=no');
	if (window.focus) {newwindow.focus()}
	
	return false;
}

function hidePopup(){
	alert('close');
	newwindow.close();
}

function showPartners(id)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("result").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","getPartners.php?id="+id,true);
xmlhttp.send();
}

function getArtistImage()
{
	var artist = document.getElementById('artist').value;
	var img = "";

	if(artist == "0"){
		img = "img/picture_unavailable.jpg";
	}else{
		img = "img/artists/main_thumbnails/" + artist + ".jpg";
	}
	
	document.getElementById('artist_img').src = img;
}

function getPartnerImage()
{
	var partner = document.getElementById('partner').value;
	var img = "";

	if(partner == "0"){
		img = "img/picture_unavailable.jpg";
	}else{
		img = "img/partners/main_thumbnails/" + partner + ".jpg";
	}
	
	document.getElementById('partner_img').src = img;
}

function getEventImage()
{
	var event_selected = document.getElementById('event').value;
	var img = "";

	if(event_selected == "0"){
		img = "img/picture_unavailable.jpg";
	}else{
		img = "img/events/main_thumbnails/" + event_selected + ".jpg";
	}
	
	document.getElementById('event_img').src = img;
}
