
function ok()
{
win=window.open('content/ok.htm','ok','width=400,height=300,resizable=no,scrollbars=no,left=250,top=150');
window.setTimeout('winclose()',3000)
}

function tv_on()
{
 f=window.open("content/swg-tv-viewer.php?cv=mietermagazin-09-06" ,"fenster","width=650,height=560");
 f.focus();
}

function winclose()
{
win.close()
}

function quer()
{
f=window.open("bild.htm","fenster","width=500,height=375");
f.focus();
}

function hoch()
{
f=window.open("bild.htm","fenster","width=375,height=500");
f.focus();
}

function chk_Form()
{
 if(document.form1.name.value == "")  {
   alert("Bitte geben Sie Ihren Namen ein!");
   document.form1.name.focus();
   return false;
  }

 if(document.form1.telefon.value == "")  {
   alert("Bitte geben Sie Ihre bitte Ihre eine Telefonnummer an!");
   document.form1.telefon.focus();
   return false;
  }

 if(document.form1.email.value ==""){}
 else
  {
	  if(document.form1.email.value.indexOf('@') == -1)
	  {
	   alert("Das ist keine gültige Email- Adresse!!");
	   document.form1.email.focus();
	   return false;
	  }
  }
}

function trailer_on()
{
 f=window.open("content/swg-trailer.htm","fenster","width=650,height=560");
 f.focus();
}
function tv_on(cv)
{
 f=window.open("content/swg-tv-viewer.php?cv=" + cv,"fenster","width=650,height=560");
 f.focus();
}
function decode(text1, text2, text3)
{
 document.write('<a href="' + 'mailto:' + text1 + '@' + text2 + '.' + text3 + '">' + text1 + '@' + text2 + '.' + text3 + '</a>');
}
function pop_karte(l)
{
f=window.open('allgemein/g-karte.php?l='+l ,'Kartenansicht','status=no, toolbar=no, scollbars=no, resizable=yes, directores=no, menubar=no, width=650, height=450');
f.window.focus();
}


