<!-- 
var isIE;
if(document.all){isIE=true}

function pop(URL,h,w) {
	if(isIE){
		if (window.newWin) { window.newWin.close() }
	}else{
        //for Netscape	
		if(window.newWin){
			if(window.newWin.closed!=true){
			    window.newWin.close();
			}
		}
	}
	specs = "HEIGHT=" + h + ",WIDTH=" + w + ",scrollbars";
	newWin =  window.open(URL,"newWin",specs);
	if (newWin.opener == null) newWin.opener = self;
	newWin.focus();
}

function popProduct(h,w) {
	if(isIE){
		if (window.newWin) { window.newWin.close() }
	}else{
        //for Netscape	
		if(window.newWin){
			if(window.newWin.closed!=true){
			    window.newWin.close();
			}
		}
	}
	specs = "height=" + h + ",width=" + w;
	URL = document.getElementById("filename").value;
	bun = document.getElementById("bu").value;
	newWin =  window.open('popup_bild.php?id=' + URL + '&bu=' + bun + '&bu=' + bun,"newWin",specs);
	if (newWin.opener == null) newWin.opener = self;
	newWin.focus();
}


function backtoWin(url) {
    parent.window.opener.location = url ;
    parent.window.opener.focus();
}

function popup(URL,type) {
	if ("small" == type) {
		w = "375";
		h = "345";
	} else if ("small_long" == type) {
		w = "375";
		h = "450";	
		
	} else if ("large" == type) {
		w = "585";
		h = "400";	
	} else if ("large_long" == type) {
		w = "585";
		h = "600";
	}
	pop(URL,h,w);
}

var currentIndex = 0;
var currentIsSuper = false;
			
function update(url, index, isSuper, filename, bu) 
{
	currentIndex = index;
	currentIsSuper = isSuper;
	document['BigPic'].src=url;
		
	if (isSuper) {
		visibleState = "visible";
	} else 
	{
		visibleState = "hidden";
	}
	document.getElementById("filename").value = filename;
	document.getElementById("bu").value = bu;
				
	return false;
}

function update_popup_bild(url, index, isSuper, filename, bu) 
{
	currentIndex = index;
	currentIsSuper = isSuper;
	document['BigPic'].src=url;
		
	if (isSuper) {
		visibleState = "visible";
	} else 
	{
		visibleState = "hidden";
	}
	document.getElementById('bu_text').innerHTML = bu;
				
	return false;
}

function update_text(text_id, text) 
{
		document.getElementById(text_id).innerHTML = text;		
}

// -->
 
 
 /*****************************************************************/


//  End of Common JavaScript Functions       -------->