/* Copyright Bayerische Hypo- und Vereinsbank AG 1999 */	

	var browser=navigator.appName;
	var version=navigator.appVersion.substring(0,1);
	if (browser=="Netscape"){
		if (version >= "4"){
			vers="N4";  
		}else if (version=="3"){
			vers="N3";
		}else if (version=="2"){
			vers="N2";
		}else{
			vers="NX";
		}
	}else if (browser=="Microsoft Internet Explorer"){
		if (version>="4"){
			vers="E4";
		}else if (version=="3"){
			vers="E3";
		}else if (version=="2"){
			vers="E2";
		}else{
			vers="EX";
		}
	}else{
		vers="XX";
	}
	
	
	/* Umrechnungsroutine EUR --> DM und DM -->EUR  */
	/* Als Parameter ist entweder EUR oder DM als Zielwährung zulässig */
	
	function ConvertCurrencyTo(val,currency){
	var KursEUR=1.95583;
	var KursDEM=1/1.95583;
	
		
	if(currency=="EUR"){
		val=val*KursDEM;}
		else {
		
		val=val*KursEUR;}
	return val;		
	}
	
	
	
	function submitForm(){
	
	if (check()==true)
	document.forms["data"].submit();
	}
	
	
	
	function biground(value,par){
	  
	  <!-- par kann eine beliebige Potenz von 10 sein -->
	  
	  value=Math.round(value);
	  value=Math.round(value/par)*par;
	  return value;
	}
	
	
	var ns4 = (document.layers)? true:false
        var ie4 = (document.all)? true:false


 	function show(id) {
        if (ns4) document.layers[id].visibility = "show"
        else if (ie4) document.all[id].style.visibility = "visible"
	}

	function hide(id) {
        if (ns4) document.layers[id].visibility = "hide"
        else if (ie4) document.all[id].style.visibility = "hidden"
	}




        function round_aic(round_value){

		var help_l = "";
		var help_r = "";
		var sign="";
		
		if (round_value < 0){
		sign="-";
		round_value=round_value*-1;
		
		}
		
		if (round_value < 1){help_l = "0";}
		if (round_value < 0.1){
			help_l = "0";
			help_r = "0";
		}
		round_value = Math.round(round_value*100);
		round_value = round_value + "";
		var laenge2 = round_value.length;
		var round_value_left = round_value.substring(0,laenge2-2);
		if(round_value_left.length>0){help_l=""}
		var round_value_right = round_value.substring(laenge2-2,laenge2);
		round_value = sign+round_value_left + help_l + "." + help_r + round_value_right;
		return round_value;
	}

    function round_aic_SetDecimal(round_value, decimal){
        var help_l = "";
		var help_r = "";
		var sign="";
		
		if (round_value < 0){
		    sign="-";
		    round_value=round_value*-1;
		}
		
		if (round_value < 1){help_l = "0";}
		if (round_value < 0.1){
			help_l = "0";
			help_r = "0";
		}
		round_value = Math.round(round_value*Math.pow(10, decimal));
		round_value = round_value + "";
		var laenge = round_value.length;
		var round_value_left = round_value.substring(0,laenge-decimal);
		if(round_value_left.length>0){help_l=""}
		var round_value_right = round_value.substring(laenge-decimal,laenge);
        if(round_value_right.length -1 < decimal){
		   for(i = 0; i < (decimal - round_value_right.length -1); i++){
		       round_value_right = '0' + round_value_right ;
		   }
		}
		round_value = sign+round_value_left + help_l + "." + help_r + round_value_right;
		return round_value;
    }

function round_aic_todecimalpoint(round_value, decimalcount){

		var help_l = "";
		var help_r = "";
		var sign="";
		var decimalmultiplier = 100;
		if (round_value < 0){
		sign="-";
		round_value=round_value*-1;
		}
		if (round_value < 1){help_l = "0";}
		if (round_value < 0.1){
			help_l = "0";
			help_r = "0";
		}

		decimalmultiplier = Math.pow(10,decimalcount);

		round_value = Math.round(round_value*decimalmultiplier);
      round_value = round_value / decimalmultiplier
		return round_value;
	}