function openfenster(artid, ivwtag, arttemplate) {
	var win, file;
	file="druckversion.php?artid="+artid+"&arttmpl="+arttemplate+"&ivwtag="+ivwtag;
	win=window.open(file,"","toolbar,titlebar,scrollbars,status,width=730,height=500,status=no");
}

function openshowbild(type, bildid, galleryid, rid) {
	var win, file;
	file="showbild.php?type="+type+"&bildid="+bildid+"&galleryid="+galleryid+"&rid="+rid;
	win=window.open(file,"","titlebar,scrollbars,status,width=560,height=600,status=no");
}

function opendiashow(type, variable, wert) {
	var file="diaframe.php?type="+type+"&"+variable+"="+wert;
	var	win=window.open(file,"Diashow","scrollbars=yes,resizable=no,status=no,width=770,height=655,screenX=100,screenY=0");
}

function bildvorschau(bildid, rid) {
	var win, file;
	file="bildvorschau.php?bildid="+bildid+"&rid="+rid;
	win=window.open(file,"","titlebar,scrollbars,status,width=560,height=600,status=no");
}

function zeitraffer() {
window.open("/live/zeitraffer_kinder.html","","width=660,height=520,resizable=no,scrollbars=no,screenX=0,screenY=0");
}

function marktzeitraffer() {
window.open("/live/zeitraffer_markt.html","","width=660,height=520,resizable=no,scrollbars=no,screenX=0,screenY=0");
}

// -- Fuer die Webcams der Partnerstädte ---------- //

function MM_openBrWindow(theURL,winName,features) { //v1.2
  window.open(theURL,winName,features);
}

// -- Fuer den Newsletter + den Schneeball + Weitersagen --------- //
function chkFormular()
{
  if(document.Formular.email.value.indexOf('@') == -1)
  {
   alert("Sie haben keine gültige E-Mail Adresse angegeben!");
   document.Formular.email.focus();
   return false;
  }
  // -- Dieser Zusatz ist nur für Schneeball + Weitersagen --//
  if(document.Formular.Empf1.value.indexOf('@') == -1)
  {
   alert("Sie muessen mindesten EINEN Empfaenger eingeben!");
   document.Formular.Empf1.focus();
   return false;
  }
}
function chkFormel()
{
  if(document.Formel.email.value.indexOf('@') == -1)
  {
   alert("Sie haben keine gültige E-Mail Adresse angegeben!");
   document.Formel.email.focus();
   return false;
  }
}
// ------------------------------------------------- //
// **gewinnspiel**

function fireItUp(num) {
   url = "http://www.christkindlesmarkt.de/gewinn/go/spiel" + num + ".html";
   win = window.open(url,num,"resizable=no,width=800,height=600,scrollbars=no");
}
