//allgemeines js für kukao-cms

function joload()
{
var infoframeb = "id_frameb";
   document.getElementById(infoframeb).style.display="none";
}
//-----------------------------------------------------------------------------------
function pic_js_display_visible(id)
{
 document.getElementById(id).style.display = 'inline'; // andernfalls noscript bereich;
}

//-----------------------------------------------------------------------------------
function oeffne_fenster(w1,w2,w3,w4,w5,w6,w7,w8)
	   {
var fenster;
	   fenster = window.open(w1,w2,w3,w4,w5,w6,w7,w8)
	   fenster.focus();
}
//-----------------------------------------------------------------------------------	   
function FensterExtern (Adresse) {
var  MeinFenster;
  MeinFenster = window.open(Adresse, "Zweitfenster", "width=300,height=400,left=100,top=200");
  MeinFenster.focus();
}	
//-----------------------------------------------------------------------------------	   
function openWindow(url,w,h,tb,stb,l,mb,sb,rs,x,y){
var t=(document.layers)? ',screenX='+x+',screenY='+y: ',left='+x+',top='+y;
 
tb=(tb)?'yes':'no';
stb=(stb)?'yes':'no';
l=(l)?'yes':'no';
mb=(mb)?'yes':'no';
sb=(sb)?'yes':'no';
rs=(rs)?'yes':'no';
x=window.open(url, 'newWin'+new Date().getTime(), 'scrollbars='+sb+',width='+w+',height='+h+',toolbar='+tb+',status='+stb+',menubar='+mb+',links='+l+',resizable='+rs+t);
x.focus();
}
//-----------------------------------------------------------------------------------
function SetFramea()
{
  //var infoframea = "id_framea";
  //document.getElementById(infoframea).style.width="80%";

}
//-----------------------------------------------------------------------------------
function SetTextareaName(zeile) {
  
  window.textareaname = zeile;
    if(typeof window.lasttextareaname != 'undefined')
    {
      zold=window.lasttextareaname;
      window.document.forms['formular'].elements['angabe['+zold+']'].style.backgroundColor="#ffffff";


    }
    
  window.document.forms['formular'].elements['angabe['+zeile+']'].style.backgroundColor="#C4FFC4";
  window.document.forms['formular'].elements['angabe['+zeile+']'].style.backgroundImage="none";

  window.lasttextareaname = zeile;

}
//-----------------------------------------------------------------------------------
function ClearBackgroundInput(name) {
  window.document.forms['suche_unter_menue'].elements['post_suchwort_private'].style.backgroundColor="#fff";
  window.document.forms['suche_unter_menue'].elements['post_suchwort_private'].style.backgroundImage="none";
  window.document.forms['suche_unter_menue'].elements['post_suchwort_private'].value="";
}	


//-----------------------------------------------------------------------------------
function show_hide_block(pointer) {

var infoDiv = "show_hide_block_" + pointer;
	if(document.getElementById(infoDiv).style.display=="block") {
		document.getElementById(infoDiv).style.display="none";
	} else {
		
                document.getElementById(infoDiv).style.display="block";

	}
	window.focus();
}
//-----------------------------------------------------------------------------------
function hover_block(pointer) {

var infoDiv = "show_hide_block_" + pointer;
                document.getElementById(infoDiv).style.display="block";
	window.focus();
}
//-----------------------------------------------------------------------------------
function weg_block(pointer) {
var infoDiv = "show_hide_block_" + pointer;
 document.getElementById(infoDiv).style.display="none";
	window.focus();
}
//-----------------------------------------------------------------------------------
function xxblockhin(pointer) {
var infoDiv = "show_hide_block_" + pointer;
 document.getElementById(infoDiv).style.display="inline";

	window.focus();
}
//-----------------------------------------------------------------------------------
function hover_helpframe() {

var infoframea = "id_framea";
var infoframeb = "id_frameb";
        //if(document.getElementById(infoframeb).style.width=="0px")
        if(document.getElementById(infoframeb).style.display=="none")
           {
           document.getElementById(infoframea).style.width="75%";
           //document.getElementById(infoframeb).style.width="300px";
           document.getElementById(infoframeb).style.display="block";
           }
           else
           {
           document.getElementById(infoframea).style.width="100%";
           //document.getElementById(infoframeb).style.width="0px";
           document.getElementById(infoframeb).style.display="none";
	   }
                //window.focus();
}
//-----------------------------------------------------------------------------------
function brille(wert) {
var brillerahmen = "id_brille";

           document.getElementById(brillerahmen).style.fontSize = wert+'em';
           //document.getElementById(brillerahmen).style.backgroundColor = '#ff0000';

}
//-----------------------------------------------------------------------------------
/* User Agent (Browserkennung) auf einen bestimmten Browsertyp prüfen */
function checkBrowserName(name){
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf(name.toLowerCase())>-1) {
   return true;
  }
   return false;
}
