function zoom(datei)
{
window1=window.open("./images/artikel/"+datei,"Detail","width=830,height=550,left=180,top=100,scrollbars=YES,resizable=YES");
window1.focus();	
	
}

function anzeigen(id,breite,evt)
   {
   //alert(window.event.y + document.body.scrollTop)	
   if (id.length>1)
      {
      document.getElementById('bildsrc').src= id
      document.getElementById('bildsrc').width= breite

      var xPos=(evt.x || evt.layerX); 
	  var yPos=(evt.y || evt.layerY);

     
		document.getElementById('bild').style.left= xPos-400;
		document.getElementById('bild').style.top = yPos+30;
		document.getElementById('bild').style.visibility = 'visible';
     
      }
   }

function ausblenden(id)
   {
    document.getElementById('bild').style.visibility = 'hidden';
   }
 
var lastelement
function selectcolor(element,valueid)
	{
	if (lastelement) lastelement.style.border="1px solid #000000"	
	element.style.border="1px solid #ff0000"
	lastelement=element
	document.getElementById('suchefarbeauswahl').value=valueid;
	}
	
	
function selectcolor2(valueid)
	{
	
	location.href="stylefinder.php?test=1&farbcode="+valueid
	}
	
	
	
	
function entferneText(el) {
    if (el.defaultValue==el.value) el.value = ""
    }

    function setzeText(el,text){
     if (el.value=="") el.value= text
    }

function berechnegesamt()
	{
     anzahl_tmp=document.getElementById('anzahl').value
     preis_tmp=document.getElementById('preis').value
	 anzahl_tmp=anzahl_tmp.replace(",",".");	 
	 preis_tmp=preis_tmp.replace(",",".");	 
		
	anzahl=parseFloat(anzahl_tmp)
	preis=parseFloat(preis_tmp)
	
	gesamt=anzahl * preis
	document.getElementById('gesamt').value=gesamt
	
	}
	
var artikel_id;
function Info(artikel_id)
{
info2 = window.open("./pro_info.php?id="+artikel_id, "Ubersicht","width=650,height=550,left=200,top=150,scrollbars=yes");
info2.focus();
}





function warenkorb_info()
{
info3 = window.open("about:blank", "warenkorb2","width=250,height=150,left=200,top=150,scrollbars=no");
info3.focus();
}



var check
function loeschen()
{
Check = confirm("Wollen Sie diese Artikel wirklich löschen?");
if(Check == false)
{
return false
}
else
{
return true;
}
}


