function openonOffice(){
  if(window.name != "onoffice"){
   onOffice = window.open("https://smart.onoffice.de/smart25/index.php", "onoffice" , "location=no, toolbar=no, status=yes, directory=0, menubar=0, scrollbars=yes, resizable=yes, top=2, left=3', " + getscreen2());
   onOffice.focus();
  }
  else{
    location.href="https://smart.onoffice.de/smart20/index.php";
  }
}


function openonOffice_test(){
  if(window.name != "onoffice"){
   onOffice = window.open("https://smart.onoffice.de/smart20/index_smart20.php", "onoffice" , "location=no, toolbar=no, status=yes, directory=0, menubar=0, scrollbars=yes, resizable=yes, top=2, left=3', " + getscreen2());
   onOffice.focus();
  }
  else{
    location.href="https://smart.onoffice.de/smart20/index_smart20.php";
  }
}


function openonOffice20(){
  if(window.name != "onoffice"){
   onOffice = window.open("http://smart.onoffice.de/smart20/index.php", "onoffice" , "location=no, toolbar=no, status=yes, directory=0, menubar=0, scrollbars=yes, resizable=yes, top=2, left=3', " + getscreen2());
   onOffice.focus();
  }
  else{
    location.href="http://smart.onoffice.de/smart20/index.php";
  }
}

function getscreen2(){
  y = (screen.height/100*100);
  x = (screen.width/100*100);
  if ( ( x / y ) > 1.8 )
  {
   x = x / 2;
  }
 return 'width='+x+', height='+y;
}

function popupTour(seite) {
	var c=seite;
	if(seite=="" || seite==undefined)
		c="desktop";
	var page = "popuptour/popuptour.php?c="+c;

	windowprops = "height=650,width=740,location=no,"
	+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
	var fensterle =
	window.open(page, "Popup", windowprops);
	fensterle.focus();
}

function popupCMSTour() {

	var page = "cms_produkttour/cms.php";

	windowprops = "height=650,width=740,location=no,"
	+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
	var fensterle =
	window.open(page, "Popup", windowprops);
	fensterle.focus();
}

function popupPresse() {
	var page = "presseinfo.php";
	windowprops = "height=500,width=600,location=no,"
	+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
	var fensterle =
	window.open(page, "Popup", windowprops);
	fensterle.focus();
}
function popupPresse2() {
	var page = "presseinfo2.php";
	windowprops = "height=500,width=600,location=no,"
	+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
	var fensterle =
	window.open(page, "Popup", windowprops);
	fensterle.focus();
}
function popupInfo() {
	var page = "popupinfo.php";
	windowprops = "height=500,width=640,location=no,"
	+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
	var fensterle =
	window.open(page, "Popup", windowprops);
	fensterle.focus();
}

function popupPage(s) {
	var seite = s+'.html';

	windowprops = 'height=410,width=330,location=no,'
	+ 'scrollbars=no,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	var fensterle =
	window.open(seite, "Popup", windowprops);
	fensterle.focus();
}
function popupAngebot(s) {
	var seite = s;

	windowprops = 'height=470,width=400,location=no,'
	+ 'scrollbars=no,menubars=no,toolbars=no,resizable=yes,top=30,left=30';
	var fensterle =
	window.open(seite, "Popup", windowprops);
	fensterle.focus();
}

function popupdownload() {
	windowprops = 'height=390,width=330,location=no,'
	+ 'scrollbars=no,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	var fensterle =
	window.open("downloadinfo.html", "Popup", windowprops);
	fensterle.focus();
}

function popupmeeting() {
	windowprops = 'height=670,width=500,location=no,'
	+ 'scrollbars=no,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	var fensterle =
	window.open("Anmeldung.html", "Popup", windowprops);
	fensterle.focus();
}


function popupPage2(s) {
	var seite = s+'.html';

	windowprops = 'height=490,width=330,location=no,'
	+ 'scrollbars=no,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	var fensterle =
	window.open(seite, "Popup", windowprops);
	fensterle.focus();
}




function popupPageAnfahrt(page) {
	var page = page + ".html";
	windowprops = "height=600,width=600,location=no,"
	+ "scrollbars=yes,menubars=no,toolbars=no,resizable=no";

	var fensterle =
	window.open(page, "Popup", windowprops);
	fensterle.focus();
}

function popupPageNews(page) {
	var page = page + ".html";
	windowprops = "height=550,width=520,location=no,"
	+ "scrollbars=yes,menubars=no,toolbars=no,resizable=no";

	var fensterle =
	window.open(page, "News", windowprops);
	fensterle.focus();
}

function popupPageSeminar(page) {
	var page = "./seminare/"+page + ".html";
	windowprops = "height=400,width=520,location=no,"
	+ "scrollbars=no,menubars=no,toolbars=no,resizable=no";

	var fensterle =
	window.open(page, "News", windowprops);
	fensterle.focus();
}
function popupPageSeminar2(page, width, height) {
	var page = "./seminare/"+page + ".html";
	windowprops = "height="+height+",width="+width+",location=no,"
	+ "scrollbars=no,menubars=no,toolbars=no,resizable=no";

	var fensterle =
	window.open(page, "News", windowprops);
	fensterle.focus();
}

function FlashTour() {
	var seite = 'http://schlundtechnologies.com/xml/deref?link=http://www1.schlund.de/rz/schlundtec/main.html';

	windowprops = 'height=478,width=760,location=no,'
	+ 'scrollbars=no,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	var fensterle =
	window.open(seite, "Popup", windowprops);
	fensterle.focus();
}

function onlineBestellung(s) {

	var seite = s
	windowprops = 'height=650,width=760,location=no,'
	+ 'scrollbars=yes,menubars=no,toolbars=no,resizable=yes,top=30,left=30';
	var fensterle =
	window.open(seite, "Popup", windowprops);
	fensterle.focus();
}

function OSG_myContentpopup(s,my_contentkey,options){
	if (!options) {
		options = 'location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no,top=5,left=30';
	}
	var seite = 'osg_popup.xhtml?art='+s+'&my_contentkey='+my_contentkey;
	var h=700;
	var b=800;
	windowprops = 'height='+h+',width='+b+','+options;
	var fensterle =	window.open(seite, "Popup", windowprops);
	fensterle.focus();
}

function bestellen(produktfokus){

	if (document.getElementById('test').checked){
		openOnlineTest(produktfokus);
	}
	else if (document.getElementById('order').checked){
		openShop(produktfokus);
		}
	else if (document.getElementById('phone').checked){
		openRueckruf(produktfokus);
	}

}

function openRueckruf(produktfokus){
	art = 'phone';
	var seite = 'osg_phone.php?art='+art+'&Produktfokus='+produktfokus;
	var h=440;
	var b=370;
	windowprops = 'height='+h+',width='+b;
	var fensterle =	window.open(seite, "Shop", windowprops);
	fensterle.focus();
}
function openRueckruf_Schulung(produktfokus){
	art = 'phone';
	var seite = 'osg_phone_schulung.php?art='+art+'&Produktfokus='+produktfokus;
	var h=440;
	var b=370;
	windowprops = 'height='+h+',width='+b;
	var fensterle =	window.open(seite, "Shop", windowprops);
	fensterle.focus();
}

function openShop(produktfokus){
	var seite = 'https://smart.onoffice.de/smart20/shop/osg_shop.php?Produktfokus='+produktfokus;
	var h=700;
	var b=800;
	windowprops = 'resizable=yes,scrollbars=yes,height='+h+',width='+b;
	var fensterle =	window.open(seite, "Shop", windowprops);
	fensterle.focus();
}

function openOnlineTest(produktfokus){
	var seite = 'https://smart.onoffice.de/smart20/shop/osg_onlinetest.php?Produktfokus='+produktfokus;
	var h=700;
	var b=800;
	windowprops = 'resizable=yes,scrollbars=yes,height='+h+',width='+b;
	var fensterle =	window.open(seite, "onlineTest", windowprops);
	fensterle.focus();
}

function OSG_mypopup(s,b,h,id,entry,optionen) {
	if (!optionen) {
		optionen = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no,top=5,left=30";
	}
	var seite = "osg_popup.xhtml?art="+s+"&id="+id+"&entry="+entry;
	windowprops = "height="+h+",width="+b+","+optionen;
	var fensterle =	window.open(seite, "Popup", windowprops);
	fensterle.focus();
}

function OSG_mymoviepopup(x,s,b,h,options) {
	if (!options) {
		options = 'location=no,scrollbar=yes,menubars=no,toolbars=no,resizable=yes,top=5,left=30';
	}
	var seite = x;
	windowprops = 'height='+h+',width='+b+','+options;
	var fensterle =	window.open(seite, "mypopup", windowprops);
	fensterle.focus();
}

function movieplayer(moviename){
	OSG_mymoviepopup('https://smart.onoffice.de/smart25/movie/movieplayer.php?moviename='+moviename,1,850,650,'left=100,top=100');
}




<!-- Neue Funktionen 12/2008 -->

function openNewRueckruf() {
	windowprops = 'height=650,width=502,location=no,'
	+ 'scrollbars=no,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	var fenster =
	window.open("https://smart.onoffice.de/smart25/Popup/Webseite/rueckruf.php", "RueckrufPopup", windowprops);
	fenster.focus();
}

function openNewTest(getParam) {
	if (null == getParam)
	{
		getParam = '';
	}
	
	windowprops = 'height=620,width=517,location=no,'
	+ 'scrollbars=yes,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	var fenster =
	window.open("https://smart.onoffice.de/smart25/Popup/Webseite/onlineTest.php"+getParam, "TestPopup", windowprops);
	fenster.focus();
}

function openNewBestellen() {
	windowprops = 'height=670,width=717,location=no,'
	+ 'scrollbars=yes,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	var fenster =
	window.open("https://smart.onoffice.de/smart25/Popup/Webseite/bestellen.php", "BestellenPopup", windowprops);
	fenster.focus();
}

function openNewsletter() {
	windowprops = 'height=650,width=660,location=no,'
	+ 'scrollbars=yes,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	var fenster = window.open("bilder/newsletter/newsletter.html", "NewsletterPopup", windowprops);
	fenster.focus();
}

<!-- FAQ Funktionen 07/2009 -->

var letzter;
function zeigFAQ(objectId) 
{
	if (document.getElementById)
	{
		d=document.getElementById(objectId)
		if(letzter&&letzter!=d)letzter.style.display = "none";
		if (d.style.display == "block")d.style.display = "none";
		else d.style.display = "block";
		letzter=d;
	}
}
function versteckFAQ()
{
	if (document.getElementById) 
	{
		d=document.getElementsByTagName('div');
		for (var i=0;i<d.length;i++)
		{
			if(d[i].className=='hideFAQ')d[i].style.display='none';
		}
	}
}

<!-- ASP Popup -->

function openASP(mitarbeiter) {
	windowprops = 'height=650,width=502,location=no,'
	+ 'scrollbars=yes,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	windowpropssm = 'height=250,width=502,location=no,'
	+ 'scrollbars=yes,menubars=no,toolbars=no,resizable=no,top=30,left=30';
	
	var fenster = null;
	if (mitarbeiter == 'CH')
	{
		fenster = window.open("http://www.onoffice.de/claudia-hillen.xhtml", "ASPPopup", windowprops);
	}
	else if (mitarbeiter == 'BK')
	{
		fenster = window.open("http://www.onoffice.de/boris-kunstleben.xhtml", "ASPPopup", windowprops);
	}
	else if (mitarbeiter == 'AS')
	{
		fenster = window.open("http://www.onoffice.de/andre-stormberg.xhtml", "ASPPopup", windowprops);
	}
	else if (mitarbeiter == 'KM')
	{
		fenster = window.open("http://www.onoffice.de/kerstin-meuser.xhtml", "ASPPopup", windowprops);
	}
	else if (mitarbeiter == 'MWe')
	{
		fenster = window.open("http://www.onoffice.de/michael-weyermann.xhtml", "ASPPopup", windowprops);
	}
	else if (mitarbeiter == 'SB')
	{
		fenster = window.open("http://www.onoffice.de/stefan-becker.xhtml", "ASPPopup", windowprops);
	}
	else if (mitarbeiter == 'JR')
	{
		fenster = window.open("http://www.onoffice.de/janosch-reuschenbach.xhtml", "ASPPopup", windowprops);
	}
	else if (mitarbeiter == 'SM')
	{
		fenster = window.open("http://www.onoffice.de/stefan-mantl.xhtml", "ASPPopup", windowpropssm);
	}
	fenster.focus();
}	
