Код
<script type="text/javascript" language="javascript">
function Dimension (Width,Height)
{
var Width = (window.screen.width)
var Height = (window.screen.height)
if(Width >= 800 && Width < 1024) and (Height >= 600 && Height < 768)
document.location.href = main1.html';
else
if(Width >= 1024 && Width < 1280) and (Height >= 768 && Height < 800)
document.location.href = 'main2.html';
else
if(Width >= 1280) and (Height >= 800 && Height < 1024)
document.location.href = 'main3.html;
else
document.location.href = 'main.html';
};
</script>