var win=null; 
function NewWindow(mypage,myname,w,h,scroll,pos){ 

        if(pos=="random"){ 
                LeftPosition=(screen.width)?Math.floor(Math.random()*((screen.width-w)-75)):100; 
                TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} 
        if(pos=="center"){ 
                LeftPosition=(screen.width)?(screen.width-w)/2:100; 
                TopPosition=(screen.height)?(screen.height-h)/2:100;} 
        if(pos=="a"){ 
				LeftPosition=0;
				TopPosition=130}
        if(pos=="b"){ 
				LeftPosition=790;
				TopPosition=130}
        else if((pos="center" && pos!="random") || pos==null){ 
                LeftPosition=160; 
                TopPosition=130} 

        settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no'; 
        win=window.open(mypage,myname,settings); 
        if(win.focus){win.focus();}}

// ÇÃ·¡½Ã
function Swf_View(URL,SizeX,SizeY)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('	width="'+SizeX+'" height="'+SizeY+'" id="menuLink" align="middle">');
    document.write('	<param name="movie"     value="'+URL+'" />');
    document.write('	<param name="quality"   value="high" />');
    document.write('	<param name="wmode"     value="transparent"/>');
	document.write('	<param name="allowScriptAccess" value="always"/> ');
	document.write('	<param name="base" value="." />');
    document.write('	<embed base="." src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'" align="middle" ');

        document.write('       wmode="transparent" ');
    document.write('	type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true />'   );
    document.write('</embed></object>');
}