
function FlanschLayerOFF(){
	aktivF = window.setTimeout("hideFlanscheLayer()", 400);
}

function FlanschLayerON(){
	
	if(typeof(aktivF) !== 'undefined'){
		clearTimeout(aktivF);
	}
	
	if(typeof(aktiv) !== 'undefined'){
		clearTimeout(aktiv);
	}
	
	document.getElementById('subflansche').style.visibility = "visible";
}

function hideFlanscheLayer(){
		document.getElementById('subflansche').style.visibility = "hidden";
		SetCookie(false);
}


function SetCookie(wert){
	document.cookie = "clickfromflansche="+wert;
}



function submt0() { 
		setTimeout('document.anwendungsfall0.submit()',1); 
		if (document.anwendungsfall0.step2) {document.anwendungsfall0.step2.value = "";}
		}

function submt() { 
		setTimeout('document.anwendungsfall0.submit()',1); 
		}
		
function xsubmt0() { 
		setTimeout('document.xanwendungsfall0.submit()',1); 
		if (document.xanwendungsfall0.step2) {document.xanwendungsfall0.step2.value = "";}
		}
		
function xsubmt() { 
		setTimeout('document.xanwendungsfall0.submit()',1); 
		}


function showsubmenue(event, WhichOne, BackPic, Type, Pos)  
{

var NN4 = document.layers? true : false;
var IE4 = document.all? true : false;
if(Pos == 1)    {
	if(IE4)	{
		Ypos = -17;
		Xpos = document.body.scrollLeft + event.clientX - event.offsetX +53;
		Ypos = document.body.scrollTop + event.clientY - event.offsetY + Ypos;
		} else	{
		Ypos = 2;
		Xpos = event.pageX +50;
		Ypos = event.pageY - 50;
		}
	if(document.getElementById(WhichOne).style.visibility == "visible" && Type == 0) return;
	document.getElementById(WhichOne).style.top = Ypos;
	document.getElementById(WhichOne).style.left = Xpos;
	}
if(Type == 0)   { 
	document.getElementById(WhichOne).style.visibility = "visible";
	} else  {
	document.getElementById(WhichOne).style.visibility = "hidden";
	}
}


function showpic(event, WhichOne, BackPic, Type, Pos)  
{


if(Type == 0)   { 
	document.getElementById(WhichOne).style.visibility = "visible";
	
	
	if(typeof(aktiv) !== 'undefined'){
		clearTimeout(aktiv);
	}

	} else  {
	
	document.getElementById(WhichOne).style.visibility = "hidden";
	SetCookie(false);
	
	}
}

function Zertifikat(){ 
var zentrierenX = (screen.width/2)-383; 
var zentrierenY = (screen.height/2)-260; 
var pos = "left="+zentrierenX+",top="+zentrierenY; 
zentrierenWindow = window.open("/cert/zert_book.html","zertifikat","resizable=no,width=766,height=520,"+pos); 
}

function felder_leeren(objParent) {
	for (var i=0; i < objParent.document.forms.length; i++){
		objParent.document.forms[i].reset();
	}
}

function openwin(page, artnr) {
		if(page == 'merkzettel_ein'){
			/*alert('Der Artikel ' + artnr + ' wurde auf Ihrem Merkzettel notiert!');*/
			w = 400;
			h = 300;
			showName = 'merkzettel_notiert_window.php?pid=' + artnr;
		}
		if(page == 'merkzettel_aus'){
			/*alert('Der Artikel ' + artnr + ' wurde vom Merkzettel entfernt!');*/
			w = 400;
			h = 300;
			showName = 'merkzettel_entfernt_window.cfm?pid=' + artnr;
		}
		if(page == 'produktfoto'){
			w = 520;
			h = 580;
			showName = 'produktfoto_window.php?p=' + artnr;
		}
		if(page == '3dansicht'){
			w = 400;
			h = 400;
			showName = '3d_window.php?p=' + artnr;
		}

		if(page == 'callback'){
			w = 400;
			h = 400;
			showName = 'callback.php';
		}

		if(page == 'ani'){
			w = 400;
			h = 400;
			/*showName = 'movie_window.php?p=' + artnr;*/
			showName = '3d_window.php?p=' + artnr;
		}
		if(page == 'messefotos'){
			w = 725;
			h = 525;
			showName = 'gfx_messe06/pic_' + artnr + '.jpg';
		}
		var myleft=(screen.width)?(screen.width-w)/2:100;
		var mytop=(screen.height)?(screen.height-h)/2:100;
        var showWin;
		var showSettings = 'status=no,scrollbars=no,resizable=no,toolbar=no,location=no';
        showWin = open('' + showName + '', '', 'width=' + w + ',height=' + h + ',left=' + myleft + ',top=' + mytop + ',' + showSettings);
		showWin.focus();
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenu2(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function checkInputArtikelnummer(arg)
{
	alert(arg);
}


