/**
 *  Object script
 *  objName : RDViewr Object Name
 *  classid : Object Class Id
 *  codebase : Object CodeBase 
 *  o_width : Object Width
 *  o_height : Object Height
 */
function writeObj(objName, classid, codebase, o_width, o_height){
    document.write('<OBJECT id='+objName+'                                                                  ');
    document.write('   classid="'+classid+'"                                                                ');
    document.write('   codebase="'+codebase+'"                                                              ');
    document.write('   name='+objName+' width='+o_width+'  height='+o_height+' >                            ');
    document.write('</object>                                                                               ');    
}

function writeObjEdit(objName, o_width, o_height){
    document.write('<OBJECT name='+objName+' ID='+objName+' CLASSID="CLSID:4CBB17F0-C1D5-4FFE-B2F6-E117A277A84E" height='+o_height+' width='+o_width+' Codebase="http://gwhub.hyosung.com/common/syslib.nsf/link/UPBoraWWC.file/$file/BoraWWC.cab#version=1,2,2004,227">   ');   
    document.write('<PARAM name=InitFilePath value="http://gwhub.hyosung.com/common/syslib.nsf/link/UPBoraWWC.file/$file/dominoWE.ini">                                                                                                        ');   
    document.write('<PARAM name=IsBrowserBar value=true>                                                                                                                                                                                       ');   
    document.write('<PARAM name="Company" value="HYOSUNG">                                                                                                                                                                                     ');   
    document.write('</OBJECT>                                                                                                                                                                                                                  ');   
                                                                                                                                                                                                                                                     
}
/**
 *  RDViewr Object script
 *  objName : RDViewr Object Name
 *  o_width : Object Width
 *  o_height : Object Height
 */
function writeObjRDView(objName,o_width, o_height){
    var classid = "clsid:29F38C37-F822-4A61-9041-C891C8F15713";
    var codebase = "http://150.25.2.114/RDServer/rdviewer35.cab#version=3,5,0,226" ;
    writeObj(objName,classid,codebase, o_width, o_height);
}


/**
 *  TChart Object script
 *  objName : RDViewr Object Name
 *  o_width : Object Width
 *  o_height : Object Height
 */
function writeObjTChart(objName,o_width, o_height){
    var classid = "clsid:B6C10489-FB89-11D4-93C9-006008A7EED4";
    var codebase = "http://agency.hyosung.com/RDServer/teechart5.cab#version=5,0,5,0" ;
    writeObj(objName,classid,codebase, o_width, o_height);
}

/**
 * IBSheet¿ë Object
 * object_id : sheet id°ª
 */
function writeObjIBSheet(object_id){
    document.write('<OBJECT ID="'+object_id+'"                                      ');
    document.write('    CLASSID="CLSID:C838E9DA-1625-4E14-8B37-C6706B43C423"        ');
    document.write('    CODEBASE="/sheet/IBSheet.CAB#version=1,9,0,8">              ');
    document.write('    <param name="Visible" value="false">                        ');
    document.write('</OBJECT>                                                       ');
}


function writeObjZebra(object_id){
    document.write('<OBJECT ID="'+object_id+'"                          ');
    document.write('CLASSID="CLSID:27CD8788-8C47-499B-A53C-4BFDE07F8194"');
    document.write('CODEBASE="/sa/zebra30.CAB#version=1,0,0,0"          ');
    document.write('height=0 width=0>                                   ');
    document.write('</OBJECT>                                           ');
}


/**
 *  uri : swf ÆÄÀÏ °æ·Î
 *  f_width : flash width size
 *  f_height : flash heigh size
 */
function writeObjFlash(uri,f_width,f_height){
    document.write('<OBJECT width="'+f_width+'" height="'+f_height+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"> ');
    document.write(' <PARAM NAME="movie" VALUE="'+uri+'"> ');
    document.write(' <PARAM NAME="bgcolor" VALUE="#ffffff"> ');
    document.write(' <PARAM NAME="quality" VALUE="high"> ');
    document.write(' <PARAM NAME="menu" VALUE="false"> ');
    document.write(' <PARAM NAME="wmode" VALUE="transparent"> ');
    document.write(' <EMBED width="'+f_width+'" height="'+f_width+'" src="'+uri+'" bgcolor="#ffffff" quality="high" menu="false" wmode="transparent" type="application/x-shockwave-flash" pluginpage="http://www.macromedia.com/go/getflashplayer"> ');
    document.write(' </EMBED> ');
    document.write('</OBJECT> ');
}


