function openPhoto(photo) {
	window.open("view_profile_photo.php?photo=" + photo, "Photo", "menubar=no,width=450,height=480,toolbar=no,scrollbars=yes");
}
function openAudio(audio) {
	window.open("view_profile_audio.php?audio=" + audio, "Audio", "menubar=no,width=400,height=240,toolbar=no,scrollbars=yes");
}
function deleteAudio(id) {
	window.open("profile_audio_delete.php?id=" + id, "Delete_Audio", "menubar=no,width=400,height=240,toolbar=no,scrollbars=yes");
}
function openVideo(video) {
	window.open("view_profile_video.php?video=" + video, "Video", "menubar=no,width=400,height=420,toolbar=no,scrollbars=yes");
}
function openInvoice(inv) {
	window.open("view_invoice.php?inv=" + inv, "Invoice", "menubar=no,width=550,height=450,toolbar=no,scrollbars=yes");
}
function openHelp(page) {
	window.open("help.php?page=" + page, "Help", "menubar=no,width=400,height=450,toolbar=no,scrollbars=yes");
}
function MM_jumpMenu(targ,selObj,restore) {
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}
function openAudition(id) {
	window.open("audition_popup.php?id=" + id, "Help", "menubar=no,width=550,height=450,toolbar=no,scrollbars=yes");
}
function openVenue(id) {
	window.open("venue_popup.php?id=" + id, "Help", "menubar=no,width=400,height=450,toolbar=no,scrollbars=yes");
}
function openVenueInvoice(inv) {
	window.open("venue_view_invoice.php?inv=" + inv, "Invoice", "menubar=no,width=550,height=450,toolbar=no,scrollbars=yes");
}
function selectProfile(first,last,id) {
	window.open("venue_find_profile_popup.php?first=" + first + "&last=" + last + "&id=" + id, "Select_Profile", "menubar=no,width=600,height=400,toolbar=no,scrollbars=yes");
}
function Start(page) {
	OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}
function isArtist() {
	document.getElementById('NotArtist').style.visibility = 'hidden';
	document.getElementById('NotArtist').style.display = 'none';
	document.getElementById('Gallery').innerHTML = 'Principal Gallery';
	document.getElementById('Webpage').innerHTML = 'Gallery Webpage';
	document.getElementById('GalleryEmail').innerHTML = 'Gallery Email';
}
function isActor() {
	document.getElementById('NotArtist').style.visibility = 'visible';
	document.getElementById('NotArtist').style.display = 'inline';
	document.getElementById('Gallery').innerHTML = 'My Agent';
	document.getElementById('Webpage').innerHTML = 'Agent Webpage';
	document.getElementById('GalleryEmail').innerHTML = 'Agent\'s Email';
}
function isDancer() {
	document.getElementById('NotArtist').style.visibility = 'visible';
	document.getElementById('NotArtist').style.display = 'inline';
	document.getElementById('Gallery').innerHTML = 'My Studio';
	document.getElementById('Webpage').innerHTML = 'Studio Webpage';
	document.getElementById('GalleryEmail').innerHTML = 'Studio Email';
}
function isModel() {
	document.getElementById('NotArtist').style.visibility = 'visible';
	document.getElementById('NotArtist').style.display = 'inline';
	document.getElementById('Gallery').innerHTML = 'My Agency';
	document.getElementById('Webpage').innerHTML = 'Agency Webpage';
	document.getElementById('GalleryEmail').innerHTML = 'Agency Email';
}
function isMusician() {
	document.getElementById('NotArtist').style.visibility = 'visible';
	document.getElementById('NotArtist').style.display = 'inline';
	document.getElementById('Gallery').innerHTML = 'My Agent';
	document.getElementById('Webpage').innerHTML = 'Agent Webpage';
	document.getElementById('GalleryEmail').innerHTML = 'Agent\'s Email';
}
function PreviewReview(id, headline, bio, category, text, photo1, photo2, photo3) {
	headline = escape(headline);
	bio = escape(bio);
	category = escape(category);
	text = escape(text);
	window.open("review_preview.php?id=" + id + "&headline=" + headline + "&bio=" + bio + "&category=" + category + "&reviewtext=" + text + "&photo1=" + photo1 + "&photo2=" + photo2 + "&photo3=" + photo3, "Preview", "width=730,height=600,toolbar=no,menubar=no,status=no,scrollbars=yes");
}
function clearText(field){
	if (field.defaultValue == field.value) field.value = '';
	else if (field.value == '') field.value = field.defaultValue;
}
function openPremium() {
	window.open("premium_membership.php", "Premium_Membership", "menubar=no,width=650,height=650,toolbar=no,scrollbars=yes");
}
