////////////////////////////////////////////////////////////////
//
// wScript.js 5.0.1
// erstellt durch Scholl Communications AG, 77694 Kehl, www.scholl.de
// erstellt mit Weblication Content Management Server, www.weblication.de
//
////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////
//
// Anzupassende Variablen:
//
////////////////////////////////////////////////////////////////
var mode 	= "";
var ie  	= (document.all) ? 1 : 0;
var ieVers    = navigator.appVersion.substring(navigator.appVersion.lastIndexOf("MSIE") + 4,navigator.appVersion.lastIndexOf("MSIE") + 8);
var ieV7 = ieVers.indexOf("7");
var ieV8 = ieVers.indexOf("8");

if(!document.all){
	if(self.innerWidth < self.document.width){
		var scrollbarsResize = true;
	}
	else if (self.innerWidth > self.document.width){
		var scrollbarsResize = false;
	}
	else{
		var scrollbarsResize = '';
	}
}


////////////////////////////////////////////////////////////////
//
// Beschreibung: Resized den Emotionenbereich im Header
//
////////////////////////////////////////////////////////////////
	
	function resizeEmotion(){

	pictureResizeOuter = document.getElementById('elementEmotions');
	pictureResizeImg   = pictureResizeOuter.firstChild;
	pictureResize      = pictureResizeImg.className;
	
	if (pictureResize == 'noresize' && pictureResize != ''){
    document.getElementById('blockEmotions').style.height = '80px';
    
  } else {
		if(document.getElementById('elementCustomer')){
			document.getElementById('elementCustomer').style.position = 'absolute';
			var top = parseInt(document.getElementById('elementCustomer').style.top);
		}
		if(document.getElementById('resizeEmotion')){
			document.getElementById('resizeEmotion').style.position 	= 'absolute';
			var left = parseInt(document.getElementById('resizeEmotion').style.marginLeft);
		}
		if(document.getElementById('blockEmotions')){
			var height 		= parseInt(document.getElementById('blockEmotions').style.height);
		}
		if(document.getElementById('elementEmotions')){
			var marginTop = parseInt(document.getElementById('elementEmotions').style.marginTop);
		}
		
		if(mode == 'big'){
			if(document.getElementById('blockEmotions')){
	    	document.getElementById('blockEmotions').style.height   = height + 26 +'px';
	    	document.getElementById('blockEmotions').style.overflow = 'hidden';
	    	height = height + 26;
	 	  }
	 	  
	 	  if(height >= 30 && height <= 160){
	 	  	document.getElementById('elementEmotions').style.marginTop 	= marginTop + (parseInt(document.getElementById('elementEmotions').className)/6) + 'px';
			}
	 	  
	 	  if(document.getElementById('elementCustomer')){
	 	  	document.getElementById('elementCustomer').style.top  			= top + 26 + 'px';
	 	  }
	 	  
	 	  if(document.getElementById('resizeEmotion')){
	 	  	if(left <= 874 && left >= 664){
	 	  		document.getElementById('resizeEmotion').style.marginLeft   = left + (210/130*25) + 'px';
	 	  	}
	 	 		document.getElementById('resizeEmotion').style.marginTop    = 5 + 'px';
	 	  }
		}
		else if(mode == 'small'){
			if(document.getElementById('blockEmotions')){
		 		document.getElementById('blockEmotions').style.height   = height - 26 +'px';
		 	  document.getElementById('blockEmotions').style.overflow = 'hidden';
		 	  height = height - 26;
	 	  }
	 	  
	 	  if(height >= 30 && height <= 160){
	 	  	document.getElementById('elementEmotions').style.marginTop 	= marginTop - (parseInt(document.getElementById('elementEmotions').className)/6) + 'px';
			}
	 	  
	 	  if(document.getElementById('elementCustomer')){
	 	  	document.getElementById('elementCustomer').style.top  			= top - 26 + 'px'
	 	  }
	 	  
	 	  if(document.getElementById('resizeEmotion')){
	 	  	if(left <= 874 && left >= 664){
		 	  	document.getElementById('resizeEmotion').style.marginLeft   = left - (210/130*25.5) + 'px';
		 	  }
		 	  document.getElementById('resizeEmotion').style.marginTop    = 5 + 'px';
	 	 	}
		}
		//alert(height);
		if(height > 30 && height < 160){
			window.setTimeout("resizeEmotion()", 10);
		}
		
		if(height == 30){
			if(document.getElementById('blockEmotions')){
	    	document.getElementById('blockEmotions').style.height   = 30 +'px';
		 	  document.getElementById('blockEmotions').style.overflow = 'hidden';
	 	  }
	 	  if(document.getElementById('elementCustomer')){
	 	  	document.getElementById('elementCustomer').style.top  = 140 + 'px';
	 	  }
	 	  if(document.getElementById('elementEmotions')){
	 	  	document.getElementById('elementEmotions').style.marginTop 	 = - document.getElementById('elementEmotions').className + 'px';
	 	  }
	 	  if(document.getElementById('resizeEmotion')){
		 	  document.getElementById('resizeEmotion').style.marginLeft    = 664 + 'px';
		 	  document.getElementById('resizeEmotion').style.marginTop     = 5 + 'px';
		 	}
			if(document.getElementById('resizeEmotionLink')){
	 	 		document.getElementById('resizeEmotionLink').title 	= 'Vergrößern';
	 	 	}
	 	 	
	 	 	if(document.getElementById('resizeEmotionImg')){
			 	document.getElementById('resizeEmotionImg').alt 		= 'Vergrößern';
			 	document.getElementById('resizeEmotionImg').src 		= '/global/wGlobal/layout/images/buttons/btn_close.gif';
	 	 	}
			
		 	document.cookie = "mode=big; path=/;";
			mode = 'big';
		} 
		
		if(height == 160){
			if(document.getElementById('blockEmotions')){
		 		document.getElementById('blockEmotions').style.height   = 160 +'px';
		 	  document.getElementById('blockEmotions').style.overflow = 'hidden';
	 	  }
	 	  if(document.getElementById('elementEmotions')){
	 	  	document.getElementById('elementEmotions').style.marginTop = 0 + 'px';
	 	  }
	 	  if(document.getElementById('elementCustomer')){
	 	 		document.getElementById('elementCustomer').style.top  = 270 + 'px'
	 	 	}
	 	 	
	 	 	if(document.getElementById('resizeEmotion')){
		 	  document.getElementById('resizeEmotion').style.marginLeft    = 874 + 'px';
		 	  document.getElementById('resizeEmotion').style.marginTop     = 5 + 'px';
	 	  }
	 	  
			if(document.getElementById('resizeEmotionLink')){
	 	  	document.getElementById('resizeEmotionLink').title 	= 'Verkleinern';
	 	  }
	 	  
	 	  if(document.getElementById('resizeEmotionImg')){
			 	document.getElementById('resizeEmotionImg').alt 		= 'Verkleinern';
			 	document.getElementById('resizeEmotionImg').src 		= '/global/wGlobal/layout/images/buttons/btn_open.png';
		 	}
			
	 	 	document.cookie = "mode=small; path=/;";
			mode = 'small';
		}
	}
}
	
////////////////////////////////////////////////////////////////
//
// Beschreibung: setzt das cookie
//
////////////////////////////////////////////////////////////////
	
	function wSetCookie(){
  	if (document.cookie) {
  		if(ie){
	  		if(document.cookie.toString().indexOf("mode=") == -1){
	  			document.cookie = "mode=small; path=/";
	  			mode = "small";
	  		}
	  		else{
	  			if(document.cookie.toString().indexOf("mode=small") != -1){
	  				var cookiemode = 'small';
	  			}
	  			else if(document.cookie.toString().indexOf("mode=big") != -1){
	  				var cookiemode = 'big';
	  			}
	  			
	  			if(cookiemode && cookiemode != mode){
	  				mode = cookiemode;
	  			}
	  		}
	  	}
	  	else{
	  		if(document.cookie.indexOf("mode=") == -1){
	  			document.cookie = "mode=small; path=/";
	  			mode = "small";
	  		}
	  		else{
	  			if(document.cookie.indexOf("mode=small") != -1){
	  				var cookiemode = 'small';
	  			}
	  			else if(document.cookie.indexOf("mode=big") != -1){
	  				var cookiemode = 'big';
	  			}
	  			
	  			if(cookiemode && cookiemode != mode){
	  				mode = cookiemode;
	  			}
	  		}
	  	}
  	}
  	else{
  		document.cookie = "mode=small; path=/";
  		mode = "small";
  	}
  	setEmotion();
  	
 	}
 	
////////////////////////////////////////////////////////////////
//
// Beschreibung: setzt die Anzeige f�r die emotion
//
////////////////////////////////////////////////////////////////
	
	function setEmotion(){
		
		
	pictureResizeOuter = document.getElementById('elementEmotions');
	pictureResizeImg   = pictureResizeOuter.getElementsByTagName('img');
	pictureResize      = pictureResizeImg[0].className;

	if (pictureResize == 'noresize' && pictureResize != ''){
    document.getElementById('blockEmotions').style.height = '80px';
    document.getElementById('resizeEmotion').style.display = 'none';
    return null;
  }

		if(document.getElementById('elementCustomer')){
			document.getElementById('elementCustomer').style.position = 'absolute';
		}
		if(document.getElementById('resizeEmotion')){
			document.getElementById('resizeEmotion').style.position 	= 'absolute';
		}
		if(document.getElementById('blockEmotion')){
			//document.getElementById('blockEmotion').style.position 	= 'absolute';
		}
		if(document.getElementById('elementEmotions')){
			//document.getElementById('elementEmotions').style.position 	= 'absolute';
		}
		
		if(mode == 'big'){
			if(document.getElementById('blockEmotions')){
	    	document.getElementById('blockEmotions').style.height   = 30 +'px';
		 	  document.getElementById('blockEmotions').style.overflow = 'hidden';
	 	  }
	 	  if(document.getElementById('elementCustomer')){
	 	  	document.getElementById('elementCustomer').style.top  = 140 + 'px';
	 	  }
	 	  if(document.getElementById('elementEmotions')){
	 	  	document.getElementById('elementEmotions').style.marginTop 	 = - document.getElementById('elementEmotions').className + 'px';
	 	  }
	 	  if(document.getElementById('resizeEmotion')){
		 	  document.getElementById('resizeEmotion').style.marginLeft    = 664 + 'px';
		 	  document.getElementById('resizeEmotion').style.marginTop     = 5 + 'px';
	 	  }
	 	  
	 	  if(document.getElementById('resizeEmotionLink')){
	 	  	document.getElementById('resizeEmotionLink').title 	= 'Vergrößern';
	 	  }
	 	  if(document.getElementById('resizeEmotionImg')){
			 	document.getElementById('resizeEmotionImg').alt 		= 'Vergrößern';
			 	document.getElementById('resizeEmotionImg').src 		= '/global/wGlobal/layout/images/buttons/btn_close.gif';
		 	}
		 	
		 	mode = 'big';
	 	}
	 	else if(mode == 'small'){
	 		if(document.getElementById('blockEmotions')){
		 		document.getElementById('blockEmotions').style.height   = 160 +'px';
		 	  document.getElementById('blockEmotions').style.overflow = 'hidden';
	 	  }
	 	  if(document.getElementById('elementEmotions')){
	 	  	document.getElementById('elementEmotions').style.marginTop = 0 + 'px';
	 	  }
	 	  if(document.getElementById('elementCustomer')){
	 	 		document.getElementById('elementCustomer').style.top  = 270 + 'px'
	 	 	}
	 	 	
	 	 	if(document.getElementById('resizeEmotion')){
		 	  document.getElementById('resizeEmotion').style.marginLeft    = 874 + 'px';
		 	  document.getElementById('resizeEmotion').style.marginTop     = 5 + 'px';
	 	  }
	 	  
	 	  if(document.getElementById('resizeEmotionLink')){
	 	  	document.getElementById('resizeEmotionLink').title 	= 'Verkleinern';
	 	  }
	 	  if(document.getElementById('resizeEmotionImg')){
			 	document.getElementById('resizeEmotionImg').alt 		= 'Verkleinern';
			 	document.getElementById('resizeEmotionImg').src 		= '/global/wGlobal/layout/images/buttons/btn_open.png';
		 	}
	 	 
	 	  mode = 'small';
	 	}
	}
          
////////////////////////////////////////////////////////////////
//
// Beschreibung: Oeffnet ein Popup-Fenster
//
////////////////////////////////////////////////////////////////

function openPopup(url){

 if(debugMode == 1){
  alert(url);
 }

 window.open(url, "popup", optionsPopup);
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Oeffnet ein Popup-Fenster vom Typ 1
//
////////////////////////////////////////////////////////////////

function openPopup1(url){

 if(debugMode == 1){
  alert(url);
 }

 window.open(url, "popup1", optionsPopup1);
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Oeffnet ein Popup-Fenster vom Typ 2
//
////////////////////////////////////////////////////////////////

function openPopup2(url){

 if(debugMode == 1){
  alert(url);
 }

 window.open(url, "popup2", optionsPopup2);
}


////////////////////////////////////////////////////////////////
//
// Beschreibung: Zeigt die Druckansicht an
//
////////////////////////////////////////////////////////////////

function wShowPrintpreview(){  

  var url = location.href;

  if(url.indexOf('?') >= 0){
    url += '&viewmode=print';
  }
  else{
    url += '?viewmode=print';    
  }
  
  if(ie && ieVers < 7){
  	openWindow(url, 'wPrintpreview', 'width=692,height=520,scrollbars=yes');
  }
  else{
  	openWindow(url, 'wPrintpreview', 'width=742,height=520,scrollbars=yes');
  }
}

/*********************************************************************************/
//
// Öffnet ein Fenster
//
// @param string Url
//
// @param string Name des Fensters
//
// @param string Optionen
//
// @return window			
//
/*********************************************************************************/

function openWindow(url, name, options){

  var regWidth = /width=(\d+)/;
  regWidth.exec(options);
  width = RegExp.$1; 
  if(width == ''){   
    width = 640; 
  }

  var regHeight = /height=(\d+)/;
  regHeight.exec(options);
  height = RegExp.$1;       
  if(height == ''){   
    height = 480; 
  }    


  if(!name && !width && !height && !options){
    return window.open(url, name);
    return;
  }
  //Zusaetzliche Optionen angeben
  if(!options){
    options = ',resizable=no,scrollbars=no,status=no';
  }
  //Position zentriert festlegen
  
  var posLeft = (screen.width / 2)  - (width  / 2);
  var posTop  = (screen.height / 2) - (height / 2);
  //alert('top='+posTop+',left='+posLeft+',width='+width+',height='+height+',' + options);<<<
  return window.open(url, name, 'top='+posTop+',left='+posLeft+',width='+width+',height='+height+',' + options);
}

/*********************************************************************************/
//
// F�hrt den Link aus
//
// @param string Url
//
// @param string Name des Fensters
//
// @param string target	
//
// @param string Optionen
//
// @return window			
//
/*********************************************************************************/

function showLink(url, name, target, options){
	if(target == ''){
		target = 'blank';
	}
	
	if(target == 'blank'){
		openWindow(url, name, options);
	}
	else if(target == 'self'){
		document.location = url;
	}
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Druckt das aktuelle Dokument
//
////////////////////////////////////////////////////////////////

function printDocument(){  

  if(document.all && navigator.appVersion.substring(22,23)==4) {
    self.focus();
    var OLECMDID_PRINT = 6;
    var OLECMDEXECOPT_DONTPROMPTUSER = 2;
    var OLECMDEXECOPT_PROMPTUSER = 1;
    var WebBrowser = '<object id="WebBrowser1" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>';
    document.body.insertAdjacentHTML('beforeEnd',WebBrowser);
    WebBrowser1.ExecWB(OLECMDID_PRINT,OLECMDEXECOPT_DONTPROMPTUSER);
    WebBrowser1.outerHTML = '';
  }
  else{
    window.print();  
  }
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Setzt den Abstand bei Referenzen Logos
//
////////////////////////////////////////////////////////////////

function setPaddingPicture(pID){
  cPicture  = document.getElementById(pID);
  cHeight   = cPicture.height;
  cPadding  = (100-cHeight)/2;
  cPicture.style.paddingTop = cPadding + 'px';
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Zeigt einen Layer fuer inline Formulare an
//
////////////////////////////////////////////////////////////////

function getCurrentStyle(elementObj){
  var returnValue;
  if (ie) {
    returnValue = document.body.clientHeight;
  } else {
    returnValue = getComputedStyle(document.getElementById('blockOutline'),'')['height'];
  }
  return returnValue;
}

function showLayerAJAX(template){

  if (document.getElementById('inlineForm')){
    closeFrame('inlineForm');
  }

  var formFrame     = document.createElement('iframe');
  formFrame.frameBorder       = '0';
  formFrame.scrolling         = 'no';


  if (template != 'callbackStart'){
    var contentBody   = document.getElementById('blockContent');
    var contentBodyFC = contentBody.firstChild;
    contentBody.insertBefore(formFrame,contentBodyFC);
    
    var contentMainBody   = window.document.body;
    var blenderBackground = document.createElement('div');
    blenderBackground.id            = 'blenderBackground';
    blenderBackground.className     = 'backgroundBlenderForms';
    blenderBackground.style.height  = getCurrentStyle(contentBody);
    contentMainBody.appendChild(blenderBackground);

  } else {
    var contentBody   = document.getElementById('top_'+template);
    contentBody.appendChild(formFrame);
  }

  

  if (template == 'callback'){
    formFrame.id                = 'inlineForm';
    formFrame.className         = 'inlineFormCallback';
    formFrame.src               = '/global/wContact/wPages/index.php?action=showForm_callback';
  } else if (template == 'support'){
    formFrame.id                = 'inlineForm';
    formFrame.className         = 'inlineFormSupport';
    formFrame.src               = '/global/wContact/wPages/index.php?action=showForm_support';
  } else if (template == 'guidedTour'){
    formFrame.id                = 'inlineForm';
    formFrame.className         = 'inlineFormSupport';
    formFrame.src               = '/global/wContact/wPages/index.php?action=showForm_guidedTour';
  } else if (template == 'callbackStart'){
    formFrame.id                = 'inlineFormStart';
    formFrame.className         = 'inlineFormCallbackStart';
    formFrame.src               = '/global/wContact/wPages/index.php?action=showForm_callbackStart';
  } else {
    formFrame.id                = 'inlineForm';
    formFrame.className         = 'inlineFormDefault';
    formFrame.src               = '/global/wContact/wPages/index.php?action=showForm_default';
  }
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Schliesst einen Layer
//
////////////////////////////////////////////////////////////////

function closeFrame(tgtObj){
  if (!tgtObj){
    var target  = 'inlineForm';
  } else {
    var target = tgtObj;
  }

  topWin            = window.top;
  var contentBody   = topWin.document.getElementById('blockContent');
  var formFrame     = topWin.document.getElementById(target);

  var contentMainBody   = topWin.document.body;
  
  var blender           = topWin.document.getElementById('blenderBackground');

  if (blender){
    contentMainBody.removeChild(blender);
  }

  contentBody.removeChild(formFrame);

}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Schliesst einen Layer
//
////////////////////////////////////////////////////////////////

function closeAllFrames(){

  topWin            = window.top;
  var contentBody   = topWin.document.getElementById('blockContent');
  var target        = 'inlineForm';
  
  if (topWin.document.getElementById(target)){
    var formFrame     = topWin.document.getElementById(target);
    contentBody.removeChild(formFrame);
  } else {
    return false;
  }

}

////////////////////////////////////////////////////////////////
//
// Beschreibung: AJAX Suche
//
////////////////////////////////////////////////////////////////

function closeWindowAjax(cWindow){
  var cWin = document.getElementById(cWindow);
  cWin.style.display='none';
}

function loadContentAjax(searchTerm){
    wGetUrlAjax('/global/suche/wPages/index.php?action=showResultAJAX&searchTerm='+searchTerm, loadContentAjaxResponse);
  }


function loadContentAjaxResponse(responseText){
  var searchResultField = document.getElementById('searchResultField');
  searchResultField.style.display = 'block';
  wEmbedString('searchResultFieldInner', responseText);
}


function searchAjaxSubmit(searchTerm,mode){
  if (searchTerm.length < 3 && mode=='go') {
    alert ('Bitte geben Sie mindestens 3 Zeichen ein');
  } else if (searchTerm.length > 2){
    loadContentAjax(searchTerm);
  } else {
    closeWindowAjax('searchResultField');
  }
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Button Switch
//
////////////////////////////////////////////////////////////////

function hoverButton(bID,mode,context){
  var buttonOuter = document.getElementById(bID);
  
  if (context == 'small'){
    var class_off = 'wglButtonCustomSmall';
    var class_on = 'wglButtonCustomSmallOver';
  } else if (context == 'inline'){
    var class_off = 'wglButtonCustom';
    var class_on = 'wglButtonCustomOver';
  } else if (context == 'login'){
    var class_off = 'wglButtonCustomLogin';
    var class_on = 'wglButtonCustomLoginOver';
  } else if (context == 'registration'){
    var class_off = 'wglButtonCustomRegistration';
    var class_on = 'wglButtonCustomRegistrationOver';
  } else {
    var class_off = 'wglButtonCustomStandard';
    var class_on = 'wglButtonCustomStandardOver';
  }

  if (mode == 'over'){
    buttonOuter.className = class_on;
  } else {
    buttonOuter.className = class_off;
  }
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Download geschuetzte Dokumente
//
////////////////////////////////////////////////////////////////

function downloadDocumentExt(docsrc){
  closeAllFrames();
  var formFrame               = document.createElement('iframe');
  formFrame.frameBorder       = '0';
  formFrame.scrolling         = 'no';
  srcURL                      = escape(docsrc);

  var contentBody   = document.getElementById('blockContent');
  var contentBodyFC = contentBody.firstChild;
  contentBody.insertBefore(formFrame,contentBodyFC);
  
  formFrame.id                = 'inlineForm';
  formFrame.className         = 'inlineFormLogin';
  formFrame.style.display     = 'none';
  if (srcURL != 'registerOnly'){
    formFrame.src               = srcURL;
  } else {
    formFrame.src               = '/global/wLogin/login_inline.php?redirect=registerOnly';
    formFrame.style.display     = 'block';
  }
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Zeigt das Loginfenster
//
////////////////////////////////////////////////////////////////

function showFrameLogin(){
  if (window.top.document.getElementById('inlineForm')){
    var loginFrame = window.top.document.getElementById('inlineForm');
    loginFrame.style.display = 'block';
    setFramePosition(loginFrame);
  }
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Setzt die Hoehe fuer den Login Frame
//
////////////////////////////////////////////////////////////////

function calcFrameHeight(){

  var cWindowHeight = window.document.body.offsetHeight;
  var diffHeight    = 300;
  var newHeight     = cWindowHeight - diffHeight;
  return newHeight;
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Berechnet die richtige Framehoehe
//
////////////////////////////////////////////////////////////////

function calcFrameWidth(){
  var cWindowWidth = window.document.body.offsetWidth;
  var diffWidth    = 380;
  var newWidth     = cWindowWidth - diffWidth;
  return newWidth;
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: Positioniert den Login Frame
//
////////////////////////////////////////////////////////////////

function setFramePosition(frmObj){
  if (ie){
    var scrollPosition = window.top.document.documentElement.scrollTop;
  } else {
    var scrollPosition = window.top.pageYOffset;
  }
  if (scrollPosition > 100){
    scrollDiffPosition = scrollPosition-150;
  } else {
    scrollDiffPosition = 0;
  }

  var cHeight = calcFrameHeight() + scrollDiffPosition;
  var cWidth  = calcFrameWidth();
  if (ieV7 == '-1' && ieV8 == '-1'){
    frmObj.style.top  = cHeight+'px';
    //frmObj.style.left = cWidth+'px';
  } else {

  }
}

////////////////////////////////////////////////////////////////
//
// Beschreibung: ueberpruefung auf iframe
//
////////////////////////////////////////////////////////////////

function checkFramed(documentSrcURL){
  if (window != window.top){
    return false;
  } else {
    window.location.href="/global/wRegister/index.php?redirect="+documentSrcURL;
  }
}
