function popup() {
		iwin = open("information/broadcasters.html","IWIN","scrollbars=yes, resizeable=yes status=yes, toolbars=no, width=650, height=650 left = 0");
}
function popup1() {
		iwin = openWindow('information/suggestions.html?eaddress=Customer%20Service','Email_the_Webmaster');
}
function popup2() {
		iwin = open("information/faq.html","IWIN","scrollbars=yes, resizeable=yes status=yes, toolbars=no, width=850, height=650 left = 0");
}
function popup3() {
		iwin = open("information/contact.html","IWIN","scrollbars=yes, resizeable=yes status=yes, toolbars=no, width=450, height=325 left = 0");
}
function popup4() {
		iwin = open("information/mission.html","IWIN","scrollbars=yes, resizeable=yes status=yes, toolbars=no, width=800, height=250 left = 0");
}
function popup5() {
		iwin = open("http://www.trz.cc/SP/Services/radio.html","IWIN","scrollbars=yes, resizeable=yes status=yes, toolbars=no, width=800, height=650 left = 0");
}
function popup6() {
		iwin = open("http://www.trz.cc/SP/coupler.html","IWIN","scrollbars=yes, resizeable=yes status=yes, toolbars=no, width=650, height=650 left = 0");
}
function popup7() {
		iwin = open("http://www.trz.cc/SP/sservices.html","IWIN","scrollbars=yes, resizeable=yes status=yes, toolbars=no, width=650, height=650 left = 0");
}
function popup8() {
		iwin = open("PR/","IWIN","scrollbars=yes, resizeable=yes status=yes, toolbars=no, width=800, height=700 left = 0");
}
function openPopup(url) {
    myPopup = window.open(url,'popupWindow','width=350,height=500,scrollbars=1');
    if (!myPopup.opener)
         myPopup.opener = self; 
}
function openWindow(url,name){ 
	popupWin = window.open(url,name, ' width=1020,height=450,left=100,top=100')
}

function stop_player() {
	document.controls.stop.disabled = true;
	document.controls.start.disabled = false;
	document.applets[0].stop();
}
function start_player(url) {
	document.controls.stop.disabled = false;
	document.controls.start.disabled = true;
	window.location.href=url;
}
function start_player_test() {
	document.controls.stop.disabled = false;
	document.controls.start.disabled = true;
	window.location.reload();
}
function popup_check(url) {
	myPopup = window.open(url,'IWIN','width=800, height=500, scrollbars=yes');
}
function popup_account(url) {
	myPopup = window.open(url,'IWIN','width=600, height=450, scrollbars=yes');
}

function confirm_charge(url, cost) {
    if (confirm("Your credit card is going to be charged " +cost+ " for this game. Click OK to continue or CANCEL to not be charged.")) {
        window.location.href=url;
		return true;
   	} else {
		window.location.reload();
    	return false;
    }
}

function validate_listener() {
	phone = document.freeLogin.number
	email  = document.freeLogin.email
	
	//if (phone.value == "") {
	//	alert("Please enter a phone number.")
	//	return false
	//}
	
//	if (phone.value.length !== 10) {
//		alert("Please enter a valid phone number.")
//		return false
//	}
	
	if (email.value == ""){
		alert("Please enter your email address")
		return false
	}
}

function checkMail() 
{ 
	var x = document.freeLogin.email.value; 
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/; 

	if (filter.test(x)); 
		else alert('Please enter a valid email address.') 
		return false
}

function formHandler(form){
	var URL = document.form.site.options[document.form.site.selectedIndex].value;
	window.location.href = URL;
}
