function btool(appwidth,appheight,REQUIRED_OCX_VERSION,width,height){
document.write('<object width="'+appwidth+'" height="'+appheight+'" classid="clsid:C89BAC33-28B7-4297-AC5B-2BA81E275F91" id="btoolcontrol"');
document.write('CODEBASE = "http://btool.net/download/btool2007.cab#version='+REQUIRED_OCX_VERSION+'">');
document.write('<param name="wtimecolor" value="#FF2400">');
document.write('<param name="uploadurl" value="post.php">');
document.write('<param name="writeurl" value="write.php">');
document.write('<param name="outline" value="1591634">');
document.write('<param name="picw" value="'+width+'">');
document.write('<param name="pich" value="'+height+'">');
document.write('<param name="EnhancedOptions" value="TransparentBrush,Continue,BToolBBS,UseLoader,UseTypeTool,JPGUncheck">');
document.write('</object>');
}

function btool_continue(appwidth,appheight,REQUIRED_OCX_VERSION,width,height,num){
document.write('<object width="'+appwidth+'" height="'+appheight+'" classid="clsid:C89BAC33-28B7-4297-AC5B-2BA81E275F91" id="btoolcontrol"');
document.write('CODEBASE = "http://btool.net/download/btool2007.cab#version='+REQUIRED_OCX_VERSION+'">');
document.write('<param name="wtimecolor" value="#FF2400">');
document.write('<param name="uploadurl" value="post.php">');
document.write('<param name="loadnum" value="'+num+'">');
document.write('<param name="writeurl" value="write.php">');
document.write('<param name="outline" value="1591634">');
document.write('<param name="picw" value="'+width+'">');
document.write('<param name="pich" value="'+height+'">');
document.write('<param name="EnhancedOptions" value="TransparentBrush,Continue,BToolBBS,UseLoader,UseTypeTool,JPGUncheck">');
document.write('</object>');
}

function escargot(appwidth,appheight,loadingurl,width,height){
document.write('<object width='+appwidth+' height='+appheight+' classid="clsid:F51D1D2C-FF76-4981-A3A5-ECF9FBE7888E" id="sgt"');
document.write('CODEBASE = "http://websgt.com/download/websgt.cab#version=1,0,0,9">');
document.write('<param name="SkinSettingURL" value="http://websgt.com/download/skin.txt">');
document.write('<param name="SkinURL" value="http://websgt.com/download/skin.png">');
document.write('<param name="UploadURL" value="'+loadingurl+'">');
document.write('<param name="ImageWidth" value="'+width+'">');
document.write('<param name="ImageHeight" value="'+height+'">');
document.write('<param name="LanguageURL" value="http://websgt.com/download/lang_en.txt">');
document.write('<param name="ReplayURL" value="http://websgt.com/rec_server/post.php">');
document.write('</object>');
}

function escargot_continue(appwidth,appheight,loadingurl,width,height,loadingurl2){
document.write('<object width='+appwidth+' height='+appheight+' classid="clsid:F51D1D2C-FF76-4981-A3A5-ECF9FBE7888E" id="sgt"');
document.write('CODEBASE = "http://websgt.com/download/websgt.cab#version=1,0,0,9">');
document.write('<param name="SkinSettingURL" value="http://websgt.com/download/skin.txt">');
document.write('<param name="SkinURL" value="http://websgt.com/download/skin.png">');
document.write('<param name="UploadURL" value="'+loadingurl+'">');
document.write('<param name="ImageWidth" value="'+width+'">');
document.write('<param name="ImageHeight" value="'+height+'">');
document.write('<param name="LanguageURL" value="http://websgt.com/download/lang_en.txt">');
document.write('<param name="LoadingURL" value="'+loadingurl2+'">');
document.write('<param name="ReplayURL" value="http://websgt.com/rec_server/post.php">');
document.write('</object>');
}