<!--

// --------------------------------------

// CONFIG SETTINGS

var name = "clientupload";
var codebase = "./ftp_upload/";
var width = "500";
var height = "300";
var url = "ftp://jrshooter.ftpaccess.cc";
var username = "client";
var password = "springtime";
var remoteDir = "Incoming";
var license = "ftp_upload/license.oxw";
var forward_url = "http://www.jrshooter.com/ftp-upload-successful";
var post_url = "http://www.jrshooter.com/ftp_upload/phpmailer/sendmail.php?key="+key;

// ----------------------------------------



var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
if (_info.indexOf("Opera") > 0) _ie = false;
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
if (_ie == true) {
  document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+name+'" codebase="http://java.sun.com/update/1.4.2/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">');
}
else if (_ns == true && _ns6 == false) { 
  // BEGIN: Update parameters below for NETSCAPE 3.x and 4.x support.
  document.write('<EMBED ');
  document.write('type="application/x-java-applet;version=1.4" ');
  document.write('CODE="javazoom.upload.client.MApplet.class" ');
  document.write('JAVA_CODEBASE="'+codebase+'" ');
  document.write('ARCHIVE="lib/jclientupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar" ');
  document.write('NAME="'+name+'" ');
  document.write('WIDTH="'+width+'" ');
  document.write('HEIGHT="'+height+'" ');
  document.write('url="'+url+'" ');
  document.write('param1="username" ');
  document.write('value1="'+username+'" ');
  document.write('param2="password" ');
  document.write('value2="'+password+'" ');
  document.write('param3="account" ');
  document.write('value3="'+remoteDir+'" ');
  document.write('param4="pasv" ');
  document.write('value4="true" ');
  document.write('mode="ftp" ');
  document.write('regfile="'+license+'" ');
  document.write('post="'+post_url+'" ');
  document.write('postparameters="extra" ');
  document.write('forward="'+forward_url+'"');
  document.write('scriptable=true ');
  document.writeln('pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED>');
  // END
}
else {
  document.write('<APPLET CODE="javazoom.upload.client.MApplet.class" JAVA_CODEBASE="'+codebase+'" ARCHIVE="lib/jclientupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar" WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+name+'">');
}
// BEGIN: Update parameters below for INTERNET EXPLORER, FIREFOX, SAFARI, OPERA, MOZILLA, NETSCAPE 6+ support.
document.writeln('<PARAM NAME=CODE VALUE="javazoom.upload.client.MApplet.class">');
document.writeln('<PARAM NAME=CODEBASE VALUE="'+codebase+'">');
document.writeln('<PARAM NAME=ARCHIVE VALUE="lib/jclientupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar">');
document.writeln('<PARAM NAME=NAME VALUE="'+name+'">');
document.writeln('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
document.writeln('<PARAM NAME="scriptable" VALUE="true">');
document.writeln('<PARAM NAME="url" VALUE="'+url+'">');
document.writeln('<PARAM NAME="param1" VALUE="username">');
document.writeln('<PARAM NAME="value1" VALUE="'+username+'">');
document.writeln('<PARAM NAME="param2" VALUE="password">');
document.writeln('<PARAM NAME="value2" VALUE="'+password+'">');
document.writeln('<PARAM NAME="param3" VALUE="account">');
document.writeln('<PARAM NAME="value3" VALUE="'+remoteDir+'">');
document.writeln('<PARAM NAME="param4" VALUE="pasv">');
document.writeln('<PARAM NAME="value4" VALUE="true">');
document.writeln('<PARAM NAME="mode" VALUE="ftp">');
document.writeln('<PARAM NAME="regfile" VALUE="'+license+'">'); 
document.writeln('<PARAM NAME="post" VALUE="'+post_url+'">');
document.writeln('<PARAM NAME="postparameters" VALUE="extra">');
document.writeln('<PARAM NAME="forward" VALUE="'+forward_url+'">');
// END
if (_ie == true) {
  document.write('</OBJECT>');
}
else if (_ns == true && _ns6 == false) {
  document.write('</NOEMBED></EMBED>');
}
else {
  document.write('</APPLET>');
}
//-->
