function writeFlash(id,flashfile,width,height) {
    document.getElementById(id).innerHTML = "<object width='"+width+"' height='"+height+"' type='application/x-shockwave-flash' data='"+flashfile+"'><param value='"+flashfile+"' name='movie' /><param name='loop' value='false' /></object>";
}