
function launchFull(url, name, height, width) 

{
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) 
  {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",resizable=no,menubar=no,locationbar=no,status=no,scrollbars=yes,screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  window.open(url, name, str);
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		eins_over = newImage("images/navi/01-jfo-over.gif");
		zwei_over = newImage("images/navi/02-leben-over.gif");
		drei_over = newImage("images/navi/03-musik-over.gif.gif");
		vier_over = newImage("images/navi/04-schauspiel-over.gif");
		fuenf_over = newImage("images/navi/05-gestaltung-over.gif");
		sechs_over = newImage("images/navi/06-schreiben-over.gif");
		sieben_over = newImage("images/navi/07-unterstuetz-over.gif");
		acht_over = newImage("images/navi/08-und-so-over.gif");
		preloadFlag = true;
	}
}

function checkform ( form )
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  if (form.email.value == "") {
    alert( "Bitte geben Sie Ihre e-mail-Adresse an." );
    form.email.focus();
    return false ;
  }
  if (form.name.value == "") {
    alert( "Bitte geben Sie Ihren Namen ein." );
    form.name.focus();
    return false ;
  }
  if (form.telefon.value == "") {
    alert( "Bitte geben Sie Ihre Telefonnummer ein." );
    form.telefon.focus();
    return false ;
  }
  // ** END **
  return true ;
}


function popCont (doc) {
		var tlstdcdWin = window.open(doc+'.html', 'xxx', 'width=650,height=342');
	}
 
	function open_revolver() {
	window.open("revolver.html","","height=690,width=585,left=330,top=140,scrollbars=no");
	}

	function open_alla() {
	window.open("alla.html","","height=690,width=585,left=330,top=140,scrollbars=no");
	}

	function open_raps125() {
	window.open("sortiment/raps125.html","","height=420,width=358,left=330,top=140,scrollbars=no");
	}

	function open_sommer250() {
	window.open("sortiment/sommer250.html","","height=420,width=358,left=330,top=140,scrollbars=no");
	}

	function open_sommer125() {
	window.open("sortiment/sommer125.html","","height=420,width=358,left=330,top=140,scrollbars=no");
	}

	function open_aroma_espresso() {
	window.open("sortiment/aroma_espresso.html","","height=380,width=430,left=180,top=130,scrollbars=no");
	}

	function open_aroma_vanille() {
	window.open("sortiment/aroma_vanille.html","","height=380,width=430,left=180,top=130,scrollbars=no");
	}

	function open_aroma_zitrone() {
	window.open("sortiment/aroma_zitrone.html","","height=380,width=430,left=180,top=130,scrollbars=no");
	}

	function open_aroma_zimt() {
	window.open("sortiment/aroma_zimt.html","","height=380,width=430,left=180,top=130,scrollbars=no");
	}

	function open_aroma_minze() {
	window.open("sortiment/aroma_minze.html","","height=380,width=430,left=180,top=130,scrollbars=no");
	}

	function open_aroma_kollekt250() {
	window.open("sortiment/aroma_kollekt125.html","","height=380,width=430,left=180,top=130,scrollbars=no");
	}



