function showapplet(src, w, h, bw, bh) {
if (src == null) return;
var iw, ih; // Set inner width and height
if (window.innerWidth == null) {
iw = document.body.clientWidth;
ih = document.body.clientHeight; 
}
else {
iw = window.innerWidth;
ih = window.innerHeight;
}
if (browser_width>=1024&&browser_height>=768) {
var sw = w;
var sh = h;
document.write('<applet code="'+src+'" width="'+sw+'" height="'+sh+'">');
}
else {
var sw = Math.round(w * bw / 100);
var sh = Math.round(h * bh / 100);
document.write('<applet code="'+src+'" width="'+sw+'" height="'+sh+'">');
}
}

