function print_me() {
	if (window.print) { 
		window.print()
	} else {
		var platform = navigator.platform.toUpperCase()
		var browser = navigator.appName.toUpperCase()
		if (platform == "MACPPC" && browser == "NETSCAPE") {
			alert('Please use command-p to print.')
		} else {
			alert('Please use control-p to print.')
		}
	}
}

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = "";
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// Used in program page drop-down menus
function mergeDate()
{
	document.dateDrop.date.value = document.dateDrop.month.value + "-" + document.dateDrop.day.value + "-" + document.dateDrop.year.value;
}

//Used by The Current Web badge on in-studio performance pages
var currentBadgeLink = document.location;
function writeCurrentBadgeTextArea() {
	document.currentBadgeForm.currentBadgeTextArea.value = "<a href=\"" + currentBadgeLink + "\"><img src=\"/radio/services/the_current/images/in_studio_badge.gif\" alt=\"The Current In-studio Performance\" width=\"150\" height=\"75\" border=\"0\"></a>";	
}

function gotoprogram(form) {
	var myindex=form.program.selectedIndex;
	if(form.program.options[myindex].value!="") { 
		window.location.href=form.program.options[myindex].value;
	}
}

//Facebook article sharing
function fbs_click() {
	u=location.href;
	t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

// Replacement for missing original 11/20/07
function videoPopUp(url) {
	window.open(url,'videoplayer','toolbar=0,status=0,width=620,height=650');
}

