function initDiv() {
  
  
  var cntLeft = new getObj("subct-middle-left");
  var cntRight = new getObj("subct-middle-right");
  var cntCon = new getObj("subct-middle-consultdaten");
  var cntRVert = new getObj("white-rand-vert");

  
  
  var MaxHTop = 293;
  var MaxHTop = 306;

  if(typeof cntLeft == 'object' || typeof cntLeft == 'function') {
     tmpH = cntLeft.obj.offsetHeight;
     if (tmpH > MaxHTop) {
       MaxHTop = tmpH;
     }    
  }  
  
  if(typeof cntRight == 'object' || typeof cntRight == 'function') { 
     tmpH = cntRight.obj.offsetHeight;
     if (tmpH > MaxHTop) {
       MaxHTop = tmpH;
     }
  }
  
   if(typeof cntCon == 'object' || typeof cntCon == 'function') {
     tmpH = cntCon.obj.offsetHeight;
     if (tmpH > MaxHTop) {
       MaxHTop = tmpH;
     }
  }


  cntLeft.style.height = MaxHTop + 'px';
  cntRight.style.height = MaxHTop + 'px';
  cntCon.style.height = MaxHTop + 'px';  
  cntRVert.style.height = MaxHTop + 'px';  
 
}

function initDivFullRand() {
  
  
  var cntLeft = new getObj("subct-middle-left");
  var cntRight = new getObj("subct-middle-right");
    var cntRVert = new getObj("white-rand-vert");

  
  
  var MaxHTop = 283;

  if(typeof cntLeft == 'object' || typeof cntLeft == 'function') {
     tmpH = cntLeft.obj.offsetHeight;
     if (tmpH > MaxHTop) {
       MaxHTop = tmpH;
     }    
  }  
  
  if(typeof cntRight == 'object' || typeof cntRight == 'function') { 
     tmpH = cntRight.obj.offsetHeight;
     if (tmpH > MaxHTop) {
       MaxHTop = tmpH;
     }
  }
  



  cntLeft.style.height = MaxHTop + 'px';
  cntRight.style.height = MaxHTop + 'px';  
  cntRVert.style.height = MaxHTop + 'px';  
 
}





function getObj(name){
      if (document.getElementById)
      {
        this.obj = document.getElementById(name);        
        this.style = document.getElementById(name).style;
      }
      else if (document.all)
      {
        this.obj = document.all[name];
        this.style = document.all[name].style;
      }
      else if (document.layers)
      {
        this.obj = document.layers[name];
        this.style = document.layers[name];
      }
 }
 
 function validateEmail(str){          
          var emailRegEx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if(str.match(emailRegEx)){
		return true;
	}
	else {
	  return false;
	}
}