document.write('')
function stringOk_f90e7b2c0d6125dcd89287150cd3730c(string, forbiddenChars) {
for(var i = 0; i < string.length; i++) {
if (forbiddenChars.indexOf(string.charAt(i)) > -1) {
return false;
}
}
return true;
}
function enterServer_f90e7b2c0d6125dcd89287150cd3730c() {
enterSubChannel_f90e7b2c0d6125dcd89287150cd3730c(null, false, null);
}
function enterChannel_f90e7b2c0d6125dcd89287150cd3730c(channelName, channelPassworded) {
enterSubChannel_f90e7b2c0d6125dcd89287150cd3730c(channelName, channelPassworded, null);
}
function enterSubChannel_f90e7b2c0d6125dcd89287150cd3730c(channelName, channelPassworded, subChannelName) {
var serveraddress = 'teamspeak://ts.playforce.ru:8767';
var nickname=window.prompt('Enter your nickname', '');
if (nickname == null) {
return;
} else if (! stringOk_f90e7b2c0d6125dcd89287150cd3730c(nickname, '()[]{}')) {
window.alert('Could not enter the teamspeak server because the nickname you entered contains one or more of these forbidden characters: ()[]{}');
return;
} else if (nickname == "") {
window.alert('Could not enter the teamspeak server because you did not enter your nickname');
return;
}
serveraddress = serveraddress + "/nickname=" + escape(nickname);
if (channelName != null) { serveraddress = serveraddress + "?channel=" + escape(channelName); }
if (channelPassworded) {
var channelpassword=window.prompt('Enter the channel password for channel ' + channelName, '');
if (channelpassword == null) {
return;
} else if (channelpassword == "") {
window.alert('Could not enter the teamspeak server because you did not enter a channel password');
return;
}
serveraddress = serveraddress + "?channelpassword=" + escape(channelpassword);
}
if (subChannelName != null) { serveraddress = serveraddress + "?subchannel=" + escape(subChannelName); }
window.location=serveraddress;
}
document.write('