// JavaScript Document

function togglediv(divid){
	if(document.getElementById(divid).style.display == 'none'){
		document.getElementById(divid).style.display = 'block';
	}else{
		document.getElementById(divid).style.display = 'none';
	}
} 

function alertOC() { //v3.0
 alert('Bitte Registrieren Sie sich kostenfrei um diese Funktion nutzen zu können.');
}

function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
	var myLeft = (screen.width-myWidth)/2;
	var myTop = (screen.height-myHeight)/2;
	features+=(features!='')?',':'';
	features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
function bebeyond_color_change(obj, pviiColor) { //v1.1 by Project VII
	obj.style.backgroundColor=pviiColor
}

function showAngebot(artikel__id, SID)
{
	
	window.open("artikel_angebot.htm?artikel__id=" + artikel__id + "&" + SID,"Angebot", "width=500,height=200,left=100,top=200");
}
function bb_chang_cat_row(obj) { //v1.1 by Project VII
	obj.style.backgroundColor="#E8E7E0"
}

function confirmSubmitGo(msg, url) 
{
var agree=confirm(msg);
if (agree) {
	location.href = url;
	return true ;
} else
	return false ;
}

function openurl(url) {
	window.location.href = url;

}

function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

