<script type="text/javascript">
<!-- function fenster_breite()

function fenster_breite()
{
if (window.innerWidth) return window.innerWidth;
else if (document.body) return document.body.offsetWidth;
   else return 0;
}

document.write("Breite: "+fenster_breite());

//-->
</script>