function tmpCall(auto,addr,chkd,width,height){
var result = "";

if(chkd == 0){
// All(normal)
result = '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=375 HEIGHT=100>\n';
result += '<PARAM NAME="controls" VALUE="All">\n';
result += '<PARAM NAME="console" VALUE="group1">\n';
result += '<PARAM NAME="autostart" VALUE="'+auto+'">\n';
result += '<PARAM NAME="src" VALUE="'+addr+'">\n';
result += '<EMBED NOJAVA="true" SRC="'+addr+'" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="All" WIDTH=375 HEIGHT=100 AUTOSTART='+auto+'>\n';
result += '<\/OBJECT>';
}

else if(chkd == 1){
// control
result = '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=350 HEIGHT=36>\n';
result += '<PARAM NAME="controls" VALUE="ControlPanel">\n';
result += '<PARAM NAME="console" VALUE="group1">\n';
result += '<PARAM NAME="autostart" VALUE="'+auto+'">\n';
result += '<PARAM NAME="src" VALUE="'+addr+'">\n';
result += '<EMBED NOJAVA="true" SRC="'+addr+'" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="ControlPanel" WIDTH=350 HEIGHT=36 AUTOSTART='+auto+'>\n';
result += '<\/OBJECT>';
}

else if(chkd == 2){
// horizontal
result = '<table width="276" height="26" border="0" cellspacing="0" cellpadding="0"><tr>\n'
result += '<td><OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26><PARAM NAME="controls" VALUE="PlayOnlyButton"><PARAM NAME="console" VALUE="group1"><PARAM NAME="autostart" VALUE="'+auto+'"><PARAM NAME="src" VALUE="'+addr+'"><EMBED NOJAVA="true" SRC="'+addr+'" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="PlayOnlyButton" WIDTH=26 HEIGHT=26 AUTOSTART='+auto+'><\/OBJECT><\/td>';
result += '<td><OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26><PARAM NAME="controls" VALUE="PauseButton"><PARAM NAME="console" VALUE="group1"><PARAM NAME="autostart" VALUE="'+auto+'"><EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="PauseButton" WIDTH=26 HEIGHT=26><\/OBJECT><\/td>';
result += '<td><OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26><PARAM NAME="controls" VALUE="StopButton"><PARAM NAME="console" VALUE="group1"><EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="StopButton" WIDTH=26 HEIGHT=26><\/OBJECT><\/td>';
result += '<td><OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26><PARAM NAME="controls" VALUE="RWCtrl"><PARAM NAME="console" VALUE="group1"><EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="RWCtrl" WIDTH=26 HEIGHT=26><\/OBJECT><\/td>';
result += '<td><OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26><PARAM NAME="controls" VALUE="FFCtrl"><PARAM NAME="console" VALUE="group1"><EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="FFCtrl" WIDTH=26 HEIGHT=26><\/OBJECT><\/td>';
result += '<td><OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=120 HEIGHT=26><PARAM NAME="controls" VALUE="PositionSlider"><PARAM NAME="console" VALUE="group1"><EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="PositionSlider" WIDTH=120 HEIGHT=26><\/OBJECT><\/td>';
result += '<td><OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26><PARAM NAME="controls" VALUE="MuteCtrl"><PARAM NAME="console" VALUE="group1"><EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="MuteCtrl" WIDTH=26 HEIGHT=26><\/OBJECT><\/td>';
result += '<\/tr><\/table>';
}
else if(chkd == 3){
// vertical
result = '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26>';
result += '<PARAM NAME="controls" VALUE="PlayOnlyButton">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<PARAM NAME="autostart" VALUE="'+auto+'">';
result += '<PARAM NAME="src" VALUE="'+addr+'">';
result += '<EMBED NOJAVA="true" SRC="'+addr+'" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="PlayOnlyButton" WIDTH=26 HEIGHT=26 AUTOSTART='+auto+'>';
result += '<\/OBJECT><br>\n';
result += '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26>';
result += '<PARAM NAME="controls" VALUE="PauseButton">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<PARAM NAME="autostart" VALUE="'+auto+'">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="PauseButton" WIDTH=26 HEIGHT=26 AUTOSTART='+auto+'>';
result += '<\/OBJECT><br>\n';
result += '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26>';
result += '<PARAM NAME="controls" VALUE="StopButton">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="StopButton" WIDTH=26 HEIGHT=26 AUTOSTART='+auto+'>';
result += '<\/OBJECT><br>\n';
result += '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26>';
result += '<PARAM NAME="controls" VALUE="RWCtrl">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="RWCtrl" WIDTH=26 HEIGHT=26 AUTOSTART='+auto+'>';
result += '<\/OBJECT><br>\n';
result += '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26>';
result += '<PARAM NAME="controls" VALUE="FFCtrl">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="FFCtrl" WIDTH=26 HEIGHT=26 AUTOSTART='+auto+'>';
result += '<\/OBJECT><br>\n';
result += '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=88>';
result += '<PARAM NAME="controls" VALUE="MuteVolume">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="MuteVolume" WIDTH=26 HEIGHT=88 AUTOSTART='+auto+'>';
result += '<\/OBJECT>';
}


else if(chkd == 4){
// movie normal
result = '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH='+width+' HEIGHT='+height+'>\n';
result += '<PARAM NAME="controls" VALUE="ImageWindow">\n';
result += '<PARAM NAME="console" VALUE="group1">\n';
result += '<PARAM NAME="autostart" VALUE="'+auto+'">\n';
result += '<PARAM NAME="src" VALUE="'+addr+'">\n';
result += '<EMBED NOJAVA="true" SRC="'+addr+'" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="ImageWindow" WIDTH='+width+' HEIGHT='+height+' AUTOSTART='+auto+'>\n';
result += '<\/OBJECT><br>\n';
result += '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH='+width+' HEIGHT=36>\n';
result += '<PARAM NAME="controls" VALUE="ControlPanel">\n';
result += '<PARAM NAME="console" VALUE="group1">\n';
result += '<PARAM NAME="autostart" VALUE="'+auto+'">\n';
result += '<PARAM NAME="src" VALUE="'+addr+'">\n';
result += '<EMBED NOJAVA="true" SRC="'+addr+'" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="ControlPanel" WIDTH='+width+' HEIGHT=36 AUTOSTART='+auto+'>\n';
result += '<\/OBJECT>';
}


else if(chkd == 5){
// vertical
var tableWidth = Number(width) + 26;
var tableHeight = height;
var muteHeight = tableHeight - 240 + 110;

result = '<table border="0" cellspacing="0" cellpadding="0" width="'+tableWidth+'" height="'+tableHeight+'">\n';
result += '<tr><td><OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH='+width+' HEIGHT='+height+'>\n';
result += '<PARAM NAME="controls" VALUE="ImageWindow">\n';
result += '<PARAM NAME="console" VALUE="group1">\n';
result += '<PARAM NAME="autostart" VALUE="'+auto+'">\n';
result += '<PARAM NAME="src" VALUE="'+addr+'">\n';
result += '<EMBED NOJAVA="true" SRC="'+addr+'" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="ImageWindow" WIDTH='+width+' HEIGHT='+height+' AUTOSTART='+auto+'>\n';
result += '<\/OBJECT><\/td>\n';
result += '<td><OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26>';
result += '<PARAM NAME="controls" VALUE="PlayOnlyButton">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="PlayOnlyButton" WIDTH=26 HEIGHT=26>';
result += '<\/OBJECT><br><OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26>';
result += '<PARAM NAME="controls" VALUE="PauseButton">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<PARAM NAME="autostart" VALUE="'+auto+'">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="PauseButton" WIDTH=26 HEIGHT=26 AUTOSTART='+auto+'>';
result += '<\/OBJECT><br>\n';
result += '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26>';
result += '<PARAM NAME="controls" VALUE="StopButton">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="StopButton" WIDTH=26 HEIGHT=26 AUTOSTART='+auto+'>';
result += '<\/OBJECT><br>\n';
result += '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26>';
result += '<PARAM NAME="controls" VALUE="RWCtrl">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="RWCtrl" WIDTH=26 HEIGHT=26 AUTOSTART='+auto+'>';
result += '<\/OBJECT><br>\n';
result += '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT=26>';
result += '<PARAM NAME="controls" VALUE="FFCtrl">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="FFCtrl" WIDTH=26 HEIGHT=26 AUTOSTART='+auto+'>';
result += '<\/OBJECT><br>\n';
result += '<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=26 HEIGHT='+muteHeight+'>';
result += '<PARAM NAME="controls" VALUE="MuteVolume">';
result += '<PARAM NAME="console" VALUE="group1">';
result += '<EMBED NOJAVA="true" type="audio\/x-pn-realaudio-plugin" CONSOLE="group1" CONTROLS="MuteVolume" WIDTH=26 HEIGHT='+muteHeight+' AUTOSTART='+auto+'>';
result += '<\/OBJECT>\n';
result += '<\/TD><\/TR><\/TABLE>';
}
else{alert('errorです');}
var copyright = '<br><small><a href="http://www.interq.or.jp/blue/inside/">音楽HP作成は「WEBに音楽を」<\/a><\/small>\n';
result += copyright;

tmpWrite(result);

}
