function modelesswin(url,mwidth,mheight)
{
	//if (document.all&&window.print) //if ie5
	//eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
	//else
	eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")');
}

PositionX = 200;
PositionY = 200;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;

function popImage(imageURL,imageTitle)
{
	xxx = ((document.body.clientWidth+1)/2);
	yyy = ((document.body.clientHeight+1)/2);
	if (isNN){imgWin=window.open('about:blank','',optNN);}
	if (isIE){imgWin=window.open('about:blank','',optIE);}
	with (imgWin.document)
	{
		writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
		writeln('<sc'+'ript>');
		writeln('var isNN,isIE;');
		writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
		writeln('isNN=(navigator.appName=="Netscape")?1:0;');
		writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
		writeln('function reSizeToImage(){');
		writeln('if (isIE){');
		writeln('width=document.images[0].width;');
		writeln('height=document.images[0].height;');
		writeln('window.resizeTo(width,height);}');
		writeln('xx='+xxx+'-((document.images[0].width)/2);');
		writeln('yy='+yyy+'-(document.images[0].height/2);');
		writeln('window.moveTo(xx,yy);');

		writeln('if (isNN){');       
		writeln('window.innerWidth=document.images["George"].width;');
		writeln('window.innerHeight=document.images["George"].height;}}');
		writeln('function doTitle(){document.title="'+imageTitle+'";}');
		writeln('</sc'+'ript>');
		if (!AutoClose) 
			 writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
		else 
			 writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">');
		writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
		close();		
	}
}


function show_flash(x,y,w,h,addr)
{
	PositionX = x;
	PositionY = y;
	defaultWidth  = w;
	defaultHeight = h;
	if (parseInt(navigator.appVersion.charAt(0))>=4){
	var isNN=(navigator.appName=="Netscape")?1:0;
	var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
	var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
	var optIE='scrollbars=no,width='+w+',height='+h+',left='+PositionX+',top='+PositionY;

	if (isNN){imgWin=window.open('about:blank','',optNN);}
	if (isIE){imgWin=window.open('about:blank','',optIE);}
	with (imgWin.document){
		writeln('<html><head><title>Saderbank-Loading...</title><style>body{margin:0px;}</style>');
		writeln('</head><body bgcolor=000000 scroll="no">');
		var tmp='<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1"    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width=' + w + ' height=' + h + '>';
		writeln(tmp);
		writeln('<param name="movie" value="' + addr + '"><param name="quality" value="High">');
		writeln('<embed src="' + addr + '"  pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"  name="obj1" width="' + w + '" height="' + h + '" quality="High"></object>');
		writeln('</body></html>');
		close();		
	}

}