function hilfe(id)
{
  window.open('/detail_help.asp?nid=237&lid='+id,'Hilfe','width=250,height=330').focus()
}

function resetUeberzug()
{
	//alert(document.forms[0].ueberzug[0].checked);

}


function setkredit(_value)
{
	
	for(var i = 0;i<document.forms[0].kreditart.length;i++)
	{
                document.forms[0].kreditart[i].disabled = !_value;
		document.forms[0].kreditart[i].checked = false;
	}
}


function changeMenue(id, over, top){
if (top){
	if(over=='over'){		
		document.getElementById("am"+id).className = 'tnavion';
		document.getElementById("tm"+id).className = 'tnavitexton';		
	}
	else{
		document.getElementById("am"+id).className = 'tnavioff';
		document.getElementById("tm"+id).className = 'tnavitextoff';
	}
}
else{
	if(over=='over'){
		document.getElementById("om"+id).className = 'navspacewhite';
		document.getElementById("am"+id).className = 'navion';
		document.getElementById("tm"+id).className = 'navitexton';
		document.getElementById("um"+id).className = 'navspacewhite';
	}
	else{
		document.getElementById("om"+id).className = 'navspacegrey';
		document.getElementById("am"+id).className = 'navioff';
		document.getElementById("tm"+id).className = 'navitextoff';
		document.getElementById("um"+id).className = 'navspacegrey';
	}
}
}

function cm_bwcheck(){
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) && window.opera 
	this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) && window.opera   
	this.ie5 = (this.agent.indexOf("msie 5")>-1 && !this.op5 && !this.op6)
	this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
	this.ie6 = (this.agent.indexOf("msie 6")>-1 && !this.op5 && !this.op6)
	this.ie7 = (this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
	this.ie4=(this.agent.indexOf("msie")>-1 && document.all &&!this.op5 &&!this.op6 &&!this.ie5&&!this.ie6)	
	this.ie = (this.ie7 || this.ie4 || this.ie5 || this.ie6)
	this.mac=(this.agent.indexOf("mac")>-1)
	this.ns6=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ns4=(!this.dom && document.layers)?1:0;
	this.bw=(this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6)
	this.usedom= this.ns6//Use dom creation
	this.reuse = this.ie||this.usedom //Reuse layers
	this.px=this.dom&&!this.op5?"px":""  
	return this	
}


function zoomimg(obj,bigimg,stext) {
  
  var zoomdiv = document.getElementById('zoomdiv');
  zoomdiv.innerHTML="<img src='"+bigimg+"' style=''><p align='center' class='textnormal' style='white-space:nowrap; font-size:11'><b>"+stext+"</b></p>";
  var body =document.body;
  zoomdiv.style.top =getPosition(obj);  
  //alert(body.scrollTop)
  zoomdiv.style.top = body.scrollTop + 150;
  zoomdiv.style.left = document.getElementById('outer').offsetLeft + 250;
  zoomdiv.style.visibility = 'visible';
}

function getPosition(obj) {   
  var pos = { x:0, y:0 };
  do {
    pos.x += obj.offsetLeft;
    pos.y += obj.offsetTop;
   } while (obj = obj.offsetParent);
   return pos.y;

}

function windowOpen(url)
{
  window.open(url,"CoinsImage","width=850,height=650,scrollbars=1,screenX=10,screenY=10,resizable,status=1").focus();
}
