function initialize() { if ( myDancerCTL ) { refresh(); var idstr = ''; // open stage var msg; msg = 'openStage=' + g_Stage + '||'; if ( postMessage(msg) != 0 ) { idstr = 'sid=' + g_Stage + '&'; } msg = 'openAction='+g_Action+'.dsq||'; if ( postMessage(msg) != 0 ) { idstr = idstr + 'pid=&'; } msg = 'openCharacter=' + g_Dancer + '||'; if ( postMessage(msg) != 0 ) { idstr = idstr + 'cid=' + g_Dancer + '&'; } /* msg = 'openData=data/preview_' + + '.sdz||'; if ( postMessage(msg) != 0 ) { idstr = idstr + 'pid=&'; } */ //alert(idstr); // open dance /* if ( String(g_Action).length > 0 ) { var spaceAction = g_Action; spaceAction = replace( spaceAction, ',',' ' ); msg = 'openMultiActionDB=' + spaceAction + '||'; if ( postMessage(msg) != 0 ) { idstr = idstr +'bid=' + g_Action; } } */ if ( String(idstr).length > 0 ) { window.status = idstr; postMessage(msg); g_LatestClick = 'initialize'; download( idstr, 'progressCB' ); } try { if ( c_page ) getDanceList(c_page, ''); // show list; else getDanceList(1, ''); // show list; } catch (e) { } } else { alert('myDancerCTL is not yet loaded'); } } function OnCreateCB( result ) { //alert('ONCreateCB'); initialize(); //selectData( ); }