// functions required for presslaff pages
function send_old(form) {
 var email = form.email.value;
 if (email!="")
    return true;
  else{
   alert("You must enter an e-mail!");
   form.email.focus();
   return false;
 }
}
function send_service() {
    var msendservice = document.frmLink_Services.services.options[document.frmLink_Services.services.selectedIndex].value;
	var newwindow, strLocation ;
	if (msendservice!="?") {
		strLocation = msendservice;
		newwindow = window.open(strLocation,"Service","width=500,height=400,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes,location=yes,copyhistory=no,left=5,top=5") ;
	}
}
function jsGet(type){
	if(location.href.match(type)){
		return location.href.split(type+'=')[1].split('&')[0];
	}
}
function doFeedWin(url) {
	window.open(url, '_feed', 'width=550,height=450,statusbar=1,menubar=0,toolbar=0,scrollbars=1');
}
// end presslaff functions

// this will bust station pages out of radiobase frameset. don't delete.
/* no longer needed 11/17/2009 MJE
var strReturn = "";
var strHref = window.location.href;
var tmp = strHref.toLowerCase();
tmp = tmp.split("http://");
var tmp2 = tmp[1].split("/");
var http_host;
var last_tmp = tmp2[0].toLowerCase();
if(last_tmp.substring(0,3) == 'www') {
	last_tmp = last_tmp.split("www.");
    http_host = last_tmp[1];
} else {
	http_host = last_tmp;
}
*/
/*
// frame buster removed since no longer needed
if (self != top && http_host != "radiobase1.clearchannel.com") {
    if (document.images)
        top.location.replace(window.location.href);
    else
        top.location.href = window.location.href;
}
*/
// end frame buster
// this blows up the image detail page to full screen since presslaff only launches a small ass window.
/* presslaff finally removed the image page popup. no longer need to maximize window. 11/17/2009 MJE
if(strHref && strHref.match("image_contest2")){
	top.window.moveTo(0,0);
	top.window.resizeTo(screen.availWidth,screen.availHeight);
}
*/