function fn_checkname() {
	if (document.form.channelname.value == "") {
		alert('Please enter the channel name');
		document.form.channelname.focus();
		return false;
	} else {
		document.form.command.value = "viewchannelname";
		document.form.action = "channel.cfm?sview=" + fn_ActiveSection('sView');
		document.form.submit();
	}
}
function fn_checkno() {
	if (document.form1.channel.value == "") {
		alert('Please enter the channel number');
		document.form1.channel.focus();
		return false;
	} else {
		document.form1.command.value = "viewchannelid";
		document.form1.action = "channel.cfm?sview=" + fn_ActiveSection('sView');
		document.form1.submit();
	}
}
function fn_unsubscribe(playerchannelid,channelid,nickname) {
	if (confirm('Do you wish to unsubscribe from the [' + nickname + '] channel?')) {
		document.form.command.value = "channelunsubscribe";
		document.form.playerchannelid.value = playerchannelid;
		document.form.action = 'channel.cfm?channelid=' + channelid + '&sview=' + fn_ActiveSection('sView');
		document.form.submit();
	}
}
function fn_SwitchChannel(linkURL,channel) {
	location.href = fn_EncryptURLParamsJS('channel.cfm', linkURL) + '&channel=' + channel + '&sView=' + fn_ActiveSection('sView');
}
function fn_ChannelStatus(linkURL) {
	location.href = fn_EncryptURLParamsJS('channel.cfm', linkURL) + '&sView=' + fn_ActiveSection('sView');
}