framename="mitte";
frameset="./index.html";
var res;
if ((screen.height) <= 600)
{  res=1;
   document.write("<LINK REL=\"stylesheet\" HREF=\"css/css800.css\" TYPE=\"text/css\">");
   }
else
{   res=2;
    document.write("<LINK REL=\"stylesheet\" HREF=\"css/css1024.css\" TYPE=\"text/css\">");
     };
function Check()
{
 if(!eval("parent."+framename)) { location.replace(frameset+"?"+location.href);}
}
function FrameCheck()
{
  setTimeout("Check()",20);
}
framename1="unten";
function Check1()
{
 if(!eval("parent."+framename1)) { location.replace(frameset);}
}
function FrameCheck1()
{
 setTimeout("Check1()",20);
}
framename2="oben";
function Check2()
{
 if(!eval("parent."+framename)) { location.replace(frameset);}
}
function FrameCheck2()
{
 setTimeout("Check2()",20);
}
function LoadFrame()
{
 var URL=location.search;
 if(URL) {
  frame=eval("frames."+framename);
  frame.location.replace(URL.substring(1,URL.length));
 }
}
var sender;
 function lupe(bild,breit,hoch) {

 if (res==1)
 {
  breit=parseInt(breit*0.8);
  hoch=parseInt(hoch*0.81);
  var seite ="<html><body><img src='img800/"+bild+"'><p><a href=javascript:this.close();>Fenster schlie&szlig;en</a></body></html>";
 }
 else
 {
  var seite ="<html><body><img src='img/"+bild+"'><p><a href=javascript:this.close();>Fenster schlie&szlig;en</a></body></html>";
 }
 fenster=window.open("","","width="+breit+",height="+hoch+",screenX=0,screenY=100,dependent=yes");
 fenster.document.write(seite);
 fenster.moveTo(10,10);
 }
 function movie(){
 var mov =  "<applet archive='panoStudioViewer.jar' code='panoStudioViewer.PanoStudioViewer.class' name='Strandpalais_Panorama_2' width="+screen.width*0.75+" height="+screen.height*0.75+">";

 document.write(mov);

 }
 function spacen(x1024,y1024,x800,y800) {
   var res800 ="<img src='img/spacer.gif' width='"+x800+"' height='"+y800+"' border='0' alt=''>";
   var res1024 ="<img src='img/spacer.gif' width='"+x1024+"' height='"+y1024+"' border='0' alt=''>";
   if (res==1)
   {
    document.write(res800);
   }
   else
   {
    document.write(res1024);
   };
 }

 function resbild(bildname) {
 if (bildname== "imap_rechts")
 	{
 		 var bild800 ="<img src='img800/rechts.jpg' usemap='#res800' border='0' alt=''>";
   var bild1024 ="<img src='img/rechts.jpg' usemap='#res1024' border='0' alt=''>";
 	}
 	else
 	{

   var bild800 ="<img src='img800/"+bildname+"' border='0' alt=''>";
   var bild1024 ="<img src='img/"+bildname+"' border='0' alt=''>";
   };
   if (res==1)
   {
    document.write(bild800);
   }
   else
   {
    document.write(bild1024);
   };
 }

 function linespacen(x1024,y1024,x800,y800) {
   var res800 ="<img src='img/linespacer.gif' width='"+x800+"' height='"+y800+"' border='0' alt=''>";
   var res1024 ="<img src='img/linespacer.gif' width='"+x1024+"' height='"+y1024+"' border='0' alt=''>";
   if (res==1)
   {
    document.write(res800);
   }
   else
   {
    document.write(res1024);
   };
 }
 function checkMail() {
             if (document.email.name.value ==''  ||document.email.betreff.value=='' )
             {alert('\nBitte geben Sie ihren Namen und ein Betreff an!.');
              return false;
             }
             else {




               document.email.action='mailto:info@bcc-bauen.de?subject='+document.email.betreff.value;

             }


    }
