function ImgOpen(src, width, height)
{
	var scroll = 'no';
	var top=0, left=0;
	
	if(width > screen.width-10 || height > screen.height-28)
		scroll = 'yes';
	if(height < screen.height-28)
		top = Math.floor((screen.height - height)/2-14);
	if(width < screen.width-10)
		left = Math.floor((screen.width - width)/2-5);
		
	wwidth = Math.min(width - 5, screen.width-10);
	wheight = Math.min(height - 5, screen.height-28);
	
	var wnd = window.open('','','scrollbars='+scroll+',resizable=no,width='+wwidth+',height='+wheight+',left='+left+',top='+top);
	wnd.document.write('<html><head></head><body style="margin: 0px; padding: 0; border: 0;">');
	wnd.document.write('<img src="' + src + '" width="' + width + '" height="' + height + '" style="display: block; margin: 0;" />');
	wnd.document.write('</body></html>');
	wnd.document.close();
}

function insFlash(src, objectId, width, height) {
    var mainFlash = document.getElementById(objectId);
    var inhtml = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="instrufl" align="middle">'
                    +'<param name="movie" value="' + src + '" />'
                    +'<param name="quality" value="high" />'
                    +'<param name="wmode" value="transparent" />'
                    +'<param name="bgcolor" value="#ffffff" />'
                    +'<param name="menu" value="false" />'
                    +'<embed src="' + src + '" quality="high" menu="false" wmode="transparent" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="instrufl" align="middle" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>'
                +'</object>';
    if (mainFlash) mainFlash.innerHTML = inhtml;
}