var WebmasterEmail="dmanvell@cox.net";var HomepageUrl="http://AION-On-Line.com";var Channel1="#AION";var Channel2="#fun";var Channel3="#sports";var Channel4="#chat";var Channel5="#help";var defaultNick='AIONfan';var defaultPass='';var defaultChan='AION';var defaultServer='irc.quakenet.org';var defaultBkgrnd='N/A';var EnableErrorReport="1";var identify="1";var PromptLoginCmd="/msg nickserv identify";var PromptChannelinfoCmd="/msg chanserv info";var StatusBarMsg="{ GoPJirc } Front End for Plouf\'s PJirc";var PromptLoginUserMsg="Type in your username:";var PromptLoginPassMsg="Now type in your password:\n(this info will be sent only to the IRC server for authentication).";var PromptLoginUserInput="";var PromptLoginPassInput="";var PromptChannelinfoMsg="Type the channel name (leave it blank for current):";var PromptChannelinfoInput="";var PromptNewnickMsg="Type your new nickname:";var PromptNewnickInput="";var PromptInviteMsg="Type the nickname of the buddy to invite to this channel:";var PromptInviteInput="";var PromptTopicMsg="Type the new topic for this channel:";var PromptTopicInput="";var PromptChannelModesMsg="Type the modes to set or unset using plus (+) or less (-) signs:\nt=op changes topic, n=no external msg, m=mute, p=private, s=secret, l=limit";var PromptChannelModesInput="";var PromptSetMsg="Type your reason for";var PromptSetMsg2="here:";var PromptSetInput="";var PromptNickMsg="Enter nickname to do the";var PromptNickMsg2="command here:";var PromptNickInput="";var PromptChannelMsg="Type the new channel name.";var PromptChannelInput="";var Channel1Text="";var Channel2Text="";var Channel3Text="";var Channel4Text="";var Channel5Text="";var ErrorReportMsgText="Error message:";var ErrorReportLineText="Line number:";var ErrorReportSubject="GoPJirc Error Report";var ErrorReportAlert="A JavaScript error has occurred on this page.\nDo you want to report it to the webmaster?\n\nPress OK to proceed or Cancel to continue.";var AwayOnMsg="is now AWAY";var AwayOffMsg="has come BACK";var AwayReasonText="reason:";var KickfastMsg="get out of here!";var AlertQuit="Are you sure you want to quit?\n\nPress OK to continue or Cancel to abort.";var AlertList="WARNING!!\n\nDepending on server\'s popularity, the execution of this command\nwill display an infinite channel list, resulting in chatting interruption.\n\nOnce you press OK, this action can\'t be canceled. Continue at your own risk!";var AlertType="0";var SoundLoadSrc="sound_load.mp3";var ChatFileName="goPJirc.html"
var StyleCursorOver="pointer";var StyleCursorOut="auto";var appletWidth='675';var appletHeight='350';var appletAlign='left';var DescBot='0';var nickResponse='$nick: $me is happy to see you in $chan!';var responderCMD='!';var textResponders=new initArray('Hell $nick hell is being in $schan with $me','$me_Hug $me gives $nick a great big hug')
var addAlias='0';var cmds=1;var params=new initArray('gui','pixx','pixx:language','pixx-english','language','english','pixx:lngextension','lng','lngextension','lng','port','9000','asl','','alternatenick',defaultNick+'??','quitmessage','{ GoPJirc } Front End for Plouf`s PJirc. PJirc forever','name','GoPJirc 2.22: http://www.gojirc.cjb.net','userid','GoPJirc 2.1','highlight','true','multiserver','true','style:bitmapsmileys','true','style:smiley1',':) smile.gif','style:smiley2',':-) smile.gif','style:smiley3',':( frown.gif','style:smiley4',':-( frown.gif','style:smiley5','<:( frown.gif','style:smiley6',':D biggrin.gif','style:smiley7',':-D biggrin.gif','style:smiley8',':P tongue.gif','style:smiley9',':-P tongue.gif','style:smiley10',':p tongue.gif','style:smiley11',':-p tongue.gif','style:smiley12','>:[ angry.gif','style:smiley13','>:| angry.gif','style:smiley14','>;( angry.gif','style:smiley15','>:( angry.gif','style:smiley16',':* kisses.gif','style:smiley17',';* kisses.gif','style:smiley18',':+ kisses.gif','style:smiley19',';) wink.gif','style:smiley20',';-) wink.gif','style:smiley21','<:O shock.gif','style:smiley22',':O shock.gif','style:smiley23',':o shock.gif','style:smiley24',':) shy.gif','style:smiley25',':o) clown.gif','style:smiley26',':/( crying.gif','style:smiley27','8) glasses.gif','style:smiley28','B) glasses.gif','style:smiley29','0:) angel.gif','style:smiley30','o:) angel.gif','style:smiley31','O:) angel.gif','style:smiley32','():) angel.gif','style:smiley33','%| freak.gif','style:smiley34','%) reak.gif','style:smiley35',':| indifferent.gif','style:smiley36','|º sleep.gif','style:smiley37','|-º sleep.gif','style:smiley38','|o sleep.gif','style:smiley39','|-o sleep.gif','style:smiley40',':\\ undecided.gif','style:smiley41',':=) biggrin.gif','style:smiley42',':s incoherent.gif','style:smiley43',':S incoherent.gif','style:smiley44','8| surprised.gif','style:smiley45','8) surprised.gif','style:smiley46','x( dead.gif','style:smiley47','X( dead.gif','style:smiley48','x| dead.gif','style:smiley49','X| dead.gif','style:smiley50','#( dead.gif','style:smiley51','#| dead.gif','style:smiley52',':9 liking_lips.gif','style:smiley53',';9 liking_lips.gif','style:smiley54','=) bugs_smile.gif','style:highlight','true','style:floatingasl','true','pixx:styleselector','true','pixx:setfontonstyle','true','pixx:highlightnick','true','pixx:nickfield','true','pixx:configurepopup','true','pixx:popupmenustring1','Whois','pixx:popupmenustring2','Query','pixx:popupmenustring3','Ban','pixx:popupmenustring4','kick + Ban','pixx:popupmenustring5','--','pixx:popupmenustring6','Op','pixx:popupmenustring7','DeOp','pixx:popupmenustring8','Voice','pixx:popupmenustring9','DeVoice','pixx:popupmenustring10','--','pixx:popupmenustring11','Ping','pixx:popupmenustring12','Version','pixx:popupmenustring13','Time','pixx:popupmenustring14','Finger','pixx:popupmenucommand1_1','/Whois %1','pixx:popupmenucommand2_1','/Query %1','pixx:popupmenucommand3_1','/mode %2 -o %1','pixx:popupmenucommand3_2','/mode %2 +b %1','pixx:popupmenucommand4_1','/mode %2 -o %1','pixx:popupmenucommand4_2','/mode %2 +b %1','pixx:popupmenucommand4_3','/kick %2 %1','pixx:popupmenucommand6_1','/mode %2 +o %1','pixx:popupmenucommand7_1','/mode %2 -o %1','pixx:popupmenucommand8_1','/mode %2 +v %1','pixx:popupmenucommand9_1','/mode %2 -v %1','pixx:popupmenucommand11_1','/CTCP PING %1','pixx:popupmenucommand12_1','/CTCP VERSION %1','pixx:popupmenucommand13_1','/CTCP TIME %1','pixx:popupmenucommand14_1','/CTCP FINGER %1')
var ChatWinName="";var ChatWinWidth="";var ChatWinHeight="";var ChatWinScroll="yes";var ChatWinResize="yes";var ChatWinMenu="yes";var ChatWinStatus="yes";var ChatWinLocation="yes";var ChatWinToolbar="yes";function initArray()
{this.length=initArray.arguments.length;for(var i=0;i<this.length;i++)
{this[i]=initArray.arguments[i];}}
document.write('<bgsound src="'+SoundLoadSrc+'">');document.write('<script language="javascript">window.status=StatusBarMsg<\/script>');function startChat()
{var args=parseQueryString();nick=args['nick'];chan=args['chan'];pass=args['pass'];server=args['server'];bkgrnd=args['bkgrnd'];loadApp(nick,chan,pass,server,bkgrnd);}
function initArray()
{this.length=initArray.arguments.length;for(var i=0;i<this.length;i++)
{this[i]=initArray.arguments[i];}}
function runCmd(type){if(type=='start'){if(document.jform.start.options[document.jform.start.selectedIndex].value!="none"){location=document.jform.start.options[document.jform.start.selectedIndex].value;}}
if(type=='view'){if(document.jform.view.options[document.jform.view.selectedIndex].value!="none"){location=document.jform.view.options[document.jform.view.selectedIndex].value}}
if(type=='tools'){if(document.jform.tools.options[document.jform.tools.selectedIndex].value!="none"){location=document.jform.tools.options[document.jform.tools.selectedIndex].value}}
if(type=='control'){if(document.jform.control.options[document.jform.control.selectedIndex].value!="none"){location=document.jform.control.options[document.jform.control.selectedIndex].value}}
if(type=='channels'){if(document.jform.channels.options[document.jform.channels.selectedIndex].value!="none"){location=document.jform.channels.options[document.jform.channels.selectedIndex].value}}
if(type=='help'){if(document.jform.help.options[document.jform.help.selectedIndex].value!="none"){location=document.jform.help.options[document.jform.help.selectedIndex].value}}
document.jform.reset();}
function newChat(url){ChatWinSettings="scrollbars="+ChatWinScroll+",resizable="+ChatWinResize+",menubar="+ChatWinMenu+",status="+ChatWinStatus+",location="+ChatWinLocation+",toolbar="+ChatWinToolbar;window.open(url,ChatWinName,'width='+ChatWinWidth+',height='+ChatWinHeight+','+ChatWinSettings);}
function newServer(opt){var newserver=prompt('Type new server url: ','irc.quakenet.org');if(opt=="0")
{document.jchat.sendString('/server '+newserver);}
else
{document.jchat.sendString('/newserver '+newserver+' '+newserver);}}
function newWindow(url){window.open(url);}
function setmsg(option){if(option=='kick'||option=='kickban'||option=='away'){msg=prompt(PromptSetMsg+' '+option+' '+PromptSetMsg2,PromptSetInput);if(msg!=null){return msg;}
else{return false;}}
else{msg=prompt(PromptNickMsg+' '+option+' '+PromptNickMsg2,PromptNickInput);if(msg!=null){return msg;}
else{return false;}}}
function gopjirc(cmd,option){if(cmd=='login'){username=prompt(PromptLoginUserMsg,PromptLoginUserInput);login=null;if(username!=null&&identify!='0'){password=prompt(PromptLoginPassMsg,PromptLoginPassInput);login=username+' '+password;}
if(login!=null||login!=''){if(identify=='1')
{document.jchat.sendString(PromptLoginCmd+' '+login);}
else
{document.jchat.sendString('/nick '+username);if(identify!='0')
{document.jchat.sendString(PromptLoginCmd+' '+password);}}}}
if(cmd=='window'){if(option=='newchat'){if(ChatFileName!=''){newChat(ChatFileName);}
else{goDebug('ChatFileName');}}}
if(cmd=='server')
{if(option=='newchat')
{newServer("1");}
else
{newServer("0");}}
if(cmd=='refresh'){window.location.reload();}
if(cmd=='homepage'){window.location=HomepageUrl}
if(cmd=='quit'){var QuitYes=confirm(AlertQuit);if(QuitYes){document.jchat.sendString('/quit');}}
if(cmd=='close'){window.close();}
if(cmd=='whois'){nick=setmsg(cmd);if(nick!=null){document.jchat.sendString('/whois '+nick);}}
if(cmd=='ping'){nick=setmsg(cmd);if(nick!=null){document.jchat.sendString('/ctcp '+cmd+' '+nick);}}
if(cmd=='finger'){nick=setmsg(cmd);if(nick!=null){document.jchat.sendString('/ctcp '+cmd+' '+nick);}}
if(cmd=='version'){nick=setmsg('client version');if(nick!=null){document.jchat.sendString('/ctcp '+cmd+' '+nick);}}
if(cmd=='clientinfo'){nick=setmsg('client info');if(nick!=null){document.jchat.sendString('/ctcp info '+nick);}}
if(cmd=='timeclient'){nick=setmsg('time client');if(nick!=null){document.jchat.sendString('/ctcp time '+nick);}}
if(cmd=='topic'){if(DescBot=="0")
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false){if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/topic '+channel);}}
else
{document.jchat.sendString('/topic $chan');}}
if(cmd=='channelinfo'){channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false){if(channel==''&&DescBot=="1"){document.jchat.sendString(PromptChannelinfoCmd+' $chan ');}
else{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString(PromptChannelinfoCmd+' '+channel);}}}
if(cmd=='timeserver'){document.jchat.sendString('/time');}
if(cmd=='ignore'){nick=setmsg('ignore/activate');if(nick!=null){document.jchat.sendString('/ignore '+nick);}}
if(cmd=='away'){if(AwayOn=='yes'){option='back';}
if(AwayOn=='no'){option='AwayOn'}
if(option=='AwayOn'){AwayReasonMsg=setmsg(cmd);if(AwayReasonMsg!=false){document.jchat.sendString('/away '+AwayReasonMsg);document.jchat.sendString('/me '+AwayOnMsg+' \('+AwayReasonText+' '+AwayReasonMsg+'\).');AwayOn='yes';}}
else{document.jchat.sendString('/away');document.jchat.sendString('/me '+AwayOffMsg+' \('+AwayReasonText+' '+AwayReasonMsg+'\).');AwayOn='no';}}
if(cmd=='newnick'){newnick=prompt(PromptNewnickMsg,PromptNewnickInput);if(newnick!=null){document.jchat.sendString('/nick '+newnick);}}
if(cmd=='invite'){nick=prompt(PromptInviteMsg,PromptInviteInput);if(nick!=null){if(nick!=''){if(DescBot=="1")
{document.jchat.sendString('/invite '+nick+' $chan ');}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/invite '+nick+' '+channel);}}}}}
if(cmd=='clear'){document.jchat.sendString('/clear');}
if(cmd=='givevoice'){nick=setmsg('give voice');if(nick!=null){if(DescBot=="1")
{document.jchat.sendString('/mode $chan +v '+nick);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/mode '+channel+' +v '+nick);}}}}
if(cmd=='removevoice'){nick=setmsg('remove voice');if(nick!=null){if(DescBot=="1")
{document.jchat.sendString('/mode $chan -v '+nick);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/mode '+channel+' -v '+nick);}}}}
if(cmd=='giveop'){nick=setmsg('give @p');if(nick!=null){if(DescBot=="1")
{document.jchat.sendString('/mode $chan +o '+nick);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/mode '+channel+' +o '+nick);}}}}
if(cmd=='removeop'){nick=setmsg('remove @p');if(nick!=null){if(DescBot=="1")
{document.jchat.sendString('/mode $chan -o '+nick);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/mode '+channel+' -o '+nick);}}}}
if(cmd=='kick'){if(option=='fast'){kickmsg=KickfastMsg;nick=setmsg('kick ('+option+')');if(nick!=null){if(DescBot=="1")
{document.jchat.sendString('/kick $chan '+nick+' '+kickmsg);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/kick '+channel+' '+nick+' '+kickmsg);}}}}
else if(option=='reason'){nick=setmsg('kick ('+option+')');if(nick!=false){kickmsg=setmsg('kick');if(kickmsg!=false){if(DescBot=="1")
{document.jchat.sendString('/kick $chan '+nick+' '+kickmsg);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/kick '+channel+' '+nick+' '+kickmsg);}}}}}
else{nick=setmsg('kick ('+option+')');kickmsg=setmsg('kick');if((nick!=null)&&(kickmsg!=false)){if(DescBot=="1")
{document.jchat.sendString('/kick $chan '+nick+' '+kickmsg);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/kick '+channel+' '+nick+' '+kickmsg);}}}}}
if(cmd=='ban'){nick=setmsg('ban');if(nick!=null){if(DescBot=="1")
{document.jchat.sendString('/mode $chan +b '+nick);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/mode '+channel+' +b '+nick);}}}}
if(cmd=='kickban'){nick=setmsg('kick and ban');if(nick!=false){kickmsg=setmsg('kickban');if(kickmsg!=false){if(DescBot=="1")
{document.jchat.sendString('/mode $chan +b '+nick);document.jchat.sendString('/kick $chan '+nick+' '+kickmsg);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/mode '+channel+' +b '+nick);document.jchat.sendString('/kick '+channel+' '+nick+' '+kickmsg);}}}}}
if(cmd=='settopic'){settopic=prompt(PromptTopicMsg,PromptTopicInput);if(settopic!=null){if(DescBot=="1")
{document.jchat.sendString('/topic $chan '+settopic);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/topic '+channel+' '+settopic);}}}}
if(cmd=='chanmodes'){chanmodes=prompt(PromptChannelModesMsg,PromptChannelModesInput);if(chanmodes!=null){if(DescBot=="1")
{document.jchat.sendString('/mode $chan '+chanmodes);}
else
{channel=prompt(PromptChannelinfoMsg,PromptChannelinfoInput);if(channel!=false)
{if(channel.indexOf("#")!=0)
{channel="#"+channel;}
document.jchat.sendString('/mode '+channel+' '+chanmodes);}}}}
if(cmd=='channel'){if(option=='channel1'){document.jchat.sendString('/join '+Channel1);}
if(option=='channel2'){document.jchat.sendString('/join '+Channel2);}
if(option=='channel3'){document.jchat.sendString('/join '+Channel3);}
if(option=='channel4'){document.jchat.sendString('/join '+Channel4);}
if(option=='channel5'){document.jchat.sendString('/join '+Channel5);}
if(option=='newchannel'){newchannel=prompt(PromptChannelMsg,PromptChannelInput);if(newchannel!=null){if(newchannel.indexOf("#")!=0)
{var joinstring='/join #';}
else
{var joinstring='/join ';}
document.jchat.sendString(joinstring+newchannel);}}
if(option=='list'){var ListYes=confirm(AlertList);if(ListYes){document.jchat.sendString('/list');}}}
if(cmd=='commands'){newWindow('commands.html');}
if(cmd=='help'){document.jchat.sendString('/help');}
if(cmd=='about'){alert('- About -\n\nGoPJirc 2.24 adapted by Thema from GojIRC 2.24 by WillyPS\nCopyright (c) 2001-2002\nhttp://www.gojirc.cjb.net\n______________________________\n\nGoPJirc Front End for JPilot\'s jIRC\nby JPilot Software.\nhttp://www.jpilot.com\n\nBased on WT-Command by Martin Nielsen\nCopyright (c) 2000-2001\nCode replublished with permission.\nhttp://jirc.webt.dk\n\n');}}
if(EnableErrorReport=='0'){function errorCheck(msg,url,linenumber){if(msg=='java.lang.ArrayIndexOutOfBoundsException: -1 < 0'){if(AlertType=='0'||AlertType=='2'){document.jchat.sendString('/notice %$N '+AlertSelectNick);return true}
else if(AlertType=='1'){alert(AlertSelectNick);return true}
else{goDebug('AlertType');return true}}}
window.onerror=errorCheck}
if(EnableErrorReport=='1'){function errorReport(msg,url,linenumber){if(msg=='java.lang.ArrayIndexOutOfBoundsException: -1 < 0'){if(AlertType=='0'||AlertType=='2'){document.jchat.sendString('/notice %$N '+AlertSelectNick);return true}
else if(AlertType=='1'){alert(AlertSelectNick);return true}
else{goDebug('AlertType');return true}}
else{var ReportYes=confirm(ErrorReportAlert);if(ReportYes){window.location="mailto:"+WebmasterEmail+"?Subject="+ErrorReportSubject+"&amp;Body="+ErrorReportMsgText+" "+msg+" \/ "+ErrorReportLineText+" "+linenumber;return true}
else{return true}}}
window.onerror=errorReport}
if(EnableErrorReport=='2'){function errorAlert(msg,url,linenumber){if(msg=='java.lang.ArrayIndexOutOfBoundsException: -1 < 0'){alert(AlertSelectNick);return true}
else{alert('# JavaScript Error #\n\nMessage: '+msg+'\nLine: '+linenumber+'\nURL: '+url);return false}}
window.onerror=errorAlert}
if(EnableErrorReport=='3'){function errorSupress(){if(msg=='java.lang.ArrayIndexOutOfBoundsException: -1 < 0'){if(AlertType=='0'||AlertType=='2'){alert(AlertSelectNick);return true}
else if(AlertType=='1'){alert(AlertSelectNick);return true}
else{goDebug('AlertType');return true}}
else{return true}}
window.onerror=errorSupress}
var BugginMsg="\n\nThis message will continue buggin until a valid action is taken.\n{ Debugger }";var ErrorText="# Config Error #\n\n";var ErrorMsg=" You must enter a correct value.";var ErrorConfirmMsg="\n\nPress OK to use a default value and continue running GoPJirc\nor press Cancel to abort chat loading. ";var LoadCanceledMsg="\n\nChat loading has been canceled :P";function loadCancel(){location.href='about:blank';}
function goDebug(type){if(type=='ChatFileName'){alert(ErrorText+'ChatFileName var is blank. You must enter a correct value.\n\nIf you want to stop using New Window option, open config.js\nand comment the var ChatFileName line with \"//\" in front of it.'+BugginMsg);}
if(type=='AlertType'){alert(ErrorText+'Value \" '+AlertType.substring()+' \" not allowed for AlertType var.\n\n0\tGoPJirc Defaults\n1\tJavaScript Alert\n2\tIRC Notice Alert'+BugginMsg);}}
if(EnableErrorReport==''){alert(ErrorText+'ErrorReport var is blank.\n\n0\tDeactivate Error Report\n1\tActivate Error Report\n2\tDev Mode\n3\tSupress Mode'+BugginMsg);loadCancel();}
if(EnableErrorReport>'3'){alert(ErrorText+'ErrorReport var incorrect value of \" '+EnableErrorReport.substring()+' \".\n\n0\tDeactivate Error Report\n1\tActivate Error Report\n2\tDev Mode\n3\tSupress Mode'+LoadCanceledMsg+BugginMsg);loadCancel();}
if(AlertType==''){alert(ErrorText+'AlertType var is blank.\n\n0\tGoPJirc Defaults\n1\tJavaScript Alert\n2\tIRC Notice Alert'+LoadCanceledMsg+BugginMsg);loadCancel();}
if(AlertType>'2')
{alert(ErrorText+'AlertType var incorrect value of \" '+AlertType.substring()+' \".\n\n0\tGoPJirc Defaults\n1\tJavaScript Alert\n2\tIRC Notice Alert'+LoadCanceledMsg+BugginMsg);loadCancel();}
if(Channel1Text==''){var Channel1Text=Channel1;}
if(Channel2Text==''){var Channel2Text=Channel2;}
if(Channel3Text==''){var Channel3Text=Channel3;}
if(Channel4Text==''){var Channel4Text=Channel4;}
if(Channel5Text==''){var Channel5Text=Channel5;}
if(AwayOn==null){var AwayOn="no"}
if(navigator.appName!='Netscape')
{var StyleCursorOver="";var StyleCursorOut="";}
function parseQueryString()
{var str=str?"":document.location.search;var query=str.charAt(0)=='?'?str.substring(1):str;var args=new Object();if(query)
{var fields=query.split('&');for(var f=0;f<fields.length;f++)
{var field=fields[f].split('=');args[unescape(field[0].replace(/\+/g,' '))]=unescape(field[1].replace(/\+/g,' '));}}
return args;}
function loadApp(nick,chan,pass,server,bkgrnd)
{if(nick==''||nick==null)nick=defaultNick;if(pass==''||pass==null)pass=defaultPass;if(chan==''||chan==null)chan=defaultChan;if(server==''||server==null)server=defaultServer;if(bkgrnd==''||bkgrnd==null)bkgrnd=defaultBkgrnd;var newChat=document.createElement('applet');newChat.setAttribute('name','jchat');newChat.setAttribute('id','jchat');newChat.setAttribute('code','IRCApplet.class');newChat.setAttribute('alt','PJirc Chat Applet');newChat.setAttribute('width',appletWidth);newChat.setAttribute('height',appletHeight);newChat.setAttribute('align',appletAlign);var newParam=document.createElement('param');newParam.setAttribute('name','nick');newParam.setAttribute('value',nick);newChat.appendChild(newParam);var serverport='9000'
var fields=server.split(':');if(fields.length>1)
{server=fields[0];serverport=fields[1];}
var newParam=document.createElement('param');newParam.setAttribute('name','host');newParam.setAttribute('value',server);newChat.appendChild(newParam);var newParam=document.createElement('param');newParam.setAttribute('name','port');newParam.setAttribute('value',serverport);newChat.appendChild(newParam);if(DescBot==1&&addAlias==1)
{newChat.setAttribute('archive','irc.jar,pixx.jar,descbot.jar,alias.jar');newParam=document.createElement('param');newParam.setAttribute('name','CABINETS');newParam.setAttribute('value','irc.cab,pixx.cab,securedirc.cab,descbot.cab,alias.cab');newChat.appendChild(newParam);newParam=document.createElement('param');newParam.setAttribute('name','plugin1');newParam.setAttribute('value','adnd.Alias');newChat.appendChild(newParam);newParam=document.createElement('param');newParam.setAttribute('name','plugin2');newParam.setAttribute('value','adnd.DescBot');newChat.appendChild(newParam);}
if(DescBot==0&&addAlias==1)
{newChat.setAttribute('archive','irc.jar,pixx.jarr,alias.jar');var newParam=document.createElement('param');newParam.setAttribute('name','CABINETS');newParam.setAttribute('value','irc.cab,pixx.cab,securedirc.cab,alias.cab');newChat.appendChild(newParam);newParam=document.createElement('param');newParam.setAttribute('name','plugin1');newParam.setAttribute('value','adnd.Alias');newChat.appendChild(newParam);}
if(DescBot==1&&addAlias==0)
{newChat.setAttribute('archive','irc.jar,pixx.jar,descbot.jar');var newParam=document.createElement('param');newParam.setAttribute('name','CABINETS');newParam.setAttribute('value','irc.cab,pixx.cab,securedirc.cab,descbot.cab');newChat.appendChild(newParam);newParam=document.createElement('param');newParam.setAttribute('name','plugin1');newParam.setAttribute('value','adnd.DescBot');newChat.appendChild(newParam);}
if(DescBot==0&&addAlias==0)
{newChat.setAttribute('archive','irc.jar,pixx.jar');var newParam=document.createElement('param');newParam.setAttribute('name','CABINETS');newParam.setAttribute('value','irc.cab,pixx.cab,securedirc.cab');newChat.appendChild(newParam);}
if(DescBot==1)
{newParam=document.createElement('param');newParam.setAttribute('name','descbot:scriptvariables');newParam.setAttribute('value','true');newChat.appendChild(newParam);newParam=document.createElement('param');newParam.setAttribute('name','descbot:respondercmd');newParam.setAttribute('value',responderCMD);newChat.appendChild(newParam);newParam=document.createElement('param');newParam.setAttribute('name','descbot:nickresponder');newParam.setAttribute('value','true');newChat.appendChild(newParam);newParam=document.createElement('param');newParam.setAttribute('name','descbot:nickresponse');newParam.setAttribute('value',nickResponse);newChat.appendChild(newParam);newParam=document.createElement('param');newParam.setAttribute('name','descbot:textresponders');newParam.setAttribute('value','true');newChat.appendChild(newParam);for(var param=0;param<textResponders.length;param++)
{newParam=document.createElement('param');var tst=param+1;newParam.setAttribute('name','descbot:textresponder'+tst);newParam.setAttribute('value',textResponders[param]);newChat.appendChild(newParam);}}
if(pass!='N/A'&&pass!='')
{newParam=document.createElement('param');newParam.setAttribute('name','command'+cmds);newParam.setAttribute('value','/msg nickserv identify '+pass);newChat.appendChild(newParam);cmds++
}
if(chan!='N/A'&&chan!="")
{newParam=document.createElement('param');newParam.setAttribute('name','command'+cmds);newParam.setAttribute('value','/join #'+chan);newChat.appendChild(newParam);cmds++
}
if(bkgrnd!='N/A'&&bkgrnd!=""&&chan!='N/A'&&chan!="")
{newParam=document.createElement('param');newParam.setAttribute('name','style:backgroundimage');newParam.setAttribute('value','true');newChat.appendChild(newParam);newParam=document.createElement('param');newParam.setAttribute('name','style:backgroundimage1');newParam.setAttribute('value','all all-'+chan+' 1 '+bkgrnd);newChat.appendChild(newParam);}
for(var param=0;param<params.length;param++)
{newParam=document.createElement('param');if(params[param].indexOf('command')==0)
{newParam.setAttribute('name','command'+cmds);cmds++;param++;}
else newParam.setAttribute('name',params[param++]);newParam.setAttribute('value',params[param]);newChat.appendChild(newParam);}
var pjDiv=document.getElementById('PJirc');pjDiv.appendChild(newChat);var cMenu=document.getElementById('channels');var spacer=document.getElementById('chanlist');var newOption=document.createElement('option');newOption.setAttribute('value',"javascript:gopjirc(\'channel\',\'channel1\')");var newText=document.createTextNode(Channel1Text);newOption.appendChild(newText);cMenu.insertBefore(newOption,spacer);newOption=document.createElement('option');newOption.setAttribute('value',"javascript:gopjirc(\'channel\',\'channel2\')");newText=document.createTextNode(Channel2Text);newOption.appendChild(newText);cMenu.insertBefore(newOption,spacer);newOption=document.createElement('option');newOption.setAttribute('value',"javascript:gopjirc(\'channel\',\'channel3\')");newText=document.createTextNode(Channel3Text);newOption.appendChild(newText);cMenu.insertBefore(newOption,spacer);newOption=document.createElement('option');newOption.setAttribute('value',"javascript:gopjirc(\'channel\',\'channel4\')");newText=document.createTextNode(Channel4Text);newOption.appendChild(newText);cMenu.insertBefore(newOption,spacer);}
