<!--
function clickIE4(){if(event.button==2){alert(message);return false;}}
function clickNS4(e){if(document.layers||document.getElementById&&!document.all){if(e.which==2||e.which==3){alert(message);return false;}}}
function popup(URL){height=500;width=750;day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+width+",height="+height+",left = 290,top = 262');");}
function addToFavorites(){title="RADIOGUIDE.FM - Your Internet Radio!";url="http://www.radioguide.fm";if(window.sidebar){window.sidebar.addPanel(title,url,"");}
else if(window.external){window.external.AddFavorite(url,title);}
else if(window.opera&&window.print){return true;}
return true;}
function formatTagcloud(){var cloud=document.getElementById('tags');var tags=cloud.getElementsByTagName('a');var sizes=new Array("8","10","12","14","16","18");for(i in tags){var rn=Math.floor(Math.random()*sizes.length)
if(tags[i].style){tags[i].style.fontSize=sizes[rn]+'px';}else{tags[i].fontSize=sizes[rn]+'px';}}}
function clearSearchform(defaultString){var field=document.getElementById('searchquery');if(field.value==defaultString){field.value="";}}
function showBox(boxname){var page=document.getElementById(boxname);if(page.style.display=="none"||page.className.indexOf('hidden')!=-1){page.style.display="block";if(page.className.indexOf('hidden')!=-1){page.className=str_replace('hidden','',page.className);}}else{page.style.display="none";}}
function str_replace(e,p,s){var i,x,k,y,f,r=true;if(typeof(e)=='string'){e=[e];}
if(typeof(p)=='string'){p=[p];}
if(typeof(r)=='string'){r=[s],f=false;}else{r=Array.prototype.slice.call(r);}
for(i=0,x=e.length;i<x;i++)
{for(k=0,y=r.length;k<y;k++){r[k]=r[k].replace(RegExp(e[i],'g'),p[i]||'')}}
return(f)?r:r[0];}
function checkform(form){if(form.form.value=="contact"){if(form.subject.value==""||form.message.value==""){alert("You forgot to fill out a required field.");return false;}}else if(form.form.value=="addstation"){if(form.station_name.value==""||form.station_url.value==""||form.station_country_short.value==""){alert("You forgot to fill out a required field.");return false;}else if(form.radiostation_owner.checked==true){if(form.owner_email.value==""||form.owner_name.value==""||form.owner_backlink.value==""){alert("You forgot to fill out a required field.");return false;}}}else if(form.form.value=="newsletter"){if(form.email.value==""){alert("You forgot to fill out your email address.");form.email.focus();return false;}}
if(form.antispam.value==""){alert("Please answer the anti spam question.");return false;}
return true;}