
function showPopUp (url) {
	win = window.open(url, "bms", "width=720,height=700,status=no,toolbar=no,titlebar=no,menubar=no,location=no,scrollbars=yes,resizable=no,top=100,left=200");
	win.focus();
}

function resize_window(){
	top.window.moveTo(0,0);
	top.window.resizeTo(screen.availWidth, screen.availHeight);
}

//window.onresize = CheckWindowSize;
//window.onload = CheckWindowSize;
function CheckWindowSize(){
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	
	if(myWidth < 1200 || myHeight < 800){
		if(myWidth < 800 || myHeight < 600){
			//swffit.startFit();	
			//document.getElementById('flashcontent').setScale( "0" );
		}else{
			//swffit.stopFit("100%", "100%");
			//document.getElementById('flashcontent').setScale( "1" );
		}
	}else{
		//swffit.startFit();
		//document.getElementById('flashcontent').setScale( "0" );
	}
}
