

function openWindow(seite){
posX1 = (screen.width) ? (screen.width-800)/2 : 0;
posY1 = (screen.height) ? (screen.height-600)/2 : 0;
	myname = 'BKS';
	settings = 'width=800,height=600,screenX='+posX1+',screenY='+posY1+',menubar=no,resizable=no,scrollbars=1';
	win = window.open(seite,myname,settings);

}

function openPrint(seite){
posX = (screen.width) ? (screen.width-800)/2 : 0;
posY = (screen.height) ? (screen.height-600)/2 : 0;
	myname = 'BKS';
	settings = 'width=800,height=600,screenX='+posX+',screenY='+posY+',menubar=yes,resizable=no,scrollbars=1';
	win = window.open(seite,myname,settings);

}

function openNewWindow(url){
   var newWindow=window.open(url ,"EXTERN","height=650,width=650,resizable=yes,status=yes,titlebar=yes,toolbar=yes,scrollbars=yes");
}

function openInIFrame(iFrame,url){       
    if(top.frames[iFrame] != null){
      top.frames[iFrame].location.href=url;
    }else{
      alert(iFrame + "  -  " + url);
    }  
}  

function ffOpenLand(land){
   
   var url=/*VIPURL*/"OrtHeader.jsp?land="+land;
   var blank=/*VIPURL*/"blank.htm";
   top.frames["FFDetail"].location.href=blank;
   var iFrame = "OrtH";
   openInIFrame(iFrame,url);
  
   
}

function ffOpenOrt(ort){
   
   var url=/*VIPURL*/"FilialenList.jsp?ort="+ort;
   
   var iFrame = "FFDetail";
   openInIFrame(iFrame,url);
   
}  

function ffOpenFiliale(filiale){
   var url=/*VIPURL*/"FilialeDetail.jsp?filiale="+filiale;
   var iFrame = "FFDetail";
   openInIFrame(iFrame,url);
} 

function pic_down(img){
   window.document.getElementById(img).src="http://www.bksbank.si/BKS_SI_webp/BKS/Global/Grafiken/Buttons/BESTELLEN_over.gif";
}

function pic_over(img){
  window.document.getElementById(img).src="http://www.bksbank.si/BKS_SI_webp/BKS/Global/Grafiken/Buttons/BESTELLEN.gif";
}
 
function scale(){
    window.setTimeout('scalefull()',200);
}
function scalefull(){
	xparent = window.document.getElementById("navdiv"); 
	xright = window.document.getElementById("rechts");
	xleft = window.document.getElementById("links");  
	xmitte = window.document.getElementById("mitte");
	height = xparent.offsetHeight;
	if(height<xright.offsetHeight){height=xright.offsetHeight;xmitte.style.height=height +'px';xparent.style.height=height +'px';}
	if(height<xleft.offsetHeight){height=xleft.offsetHeight;xmitte.style.height=height +'px';xparent.style.height=height+'px';}
	xright.style.height = height + 'px';
	xleft.style.height = height + 'px';
	xright.style.height = height + 'px';
	xmitte.style.height=height +'px';
	xparent.style.height=height+'px';
}
function scaleStart(){
	xparent = document.getElementById("navdiv"); 
	xchild = document.getElementById("rechts");  
	xchild.style.height = xparent.offsetHeight + 'px';
}
