//<!-- hide
// **********************************************************************
// ***************  DHTML von 8sense<interactive> ***********************
// *************************(c) Oliver Rose / o.rose@8sense.de **********
// WARNUNG:  Dieser Code darf nicht ohne Genehmigung von Oliver Rose
// verwendet werden !!!  All rights reserved. Alle Rechte vorbehalten. 
// **********************************************************************
function RequestFIArticle(artid) {
	window.open ('popups/req_article.php?artid='+artid,'userrequest','scrollbars=no,status=no,width=450,height=520,menubar=no,left=50,top=50,location=no,resizable=no,directories=no');
}
function RequestFIProduct(prodid) {
	window.open ('popups/req_product.php?prodid='+prodid,'userrequest','scrollbars=no,status=no,width=450,height=520,menubar=no,left=50,top=50,location=no,resizable=no,directories=no');
}
function SendAFriend(thisid,mode) {
	window.open ('popups/req_sendafriend.php?thisid='+thisid+'&mode='+mode,'userrequest','scrollbars=no,status=no,width=450,height=520,menubar=no,left=50,top=50,location=no,resizable=no,directories=no');
}

function CountMax(feld,feldlaenge) {
    if (document.myform[feld].value.length > feldlaenge) {
		alert('Sorry: \nYour reached the maximum allowed length of '+feldlaenge+' characters.\nThe text will be cropped.');
		document.myform[feld].value = document.myform[feld].value.substring (0, feldlaenge-3);
    }
	
	if(document.myform[feld].value.length>0) document.myform["anzahlanz"].value = "("+document.myform[feld].value.length+ " chars in use)";
		
}

function AskDelete(thisid){
	var myMessage = "Do you really want to delete this product?";
	if(confirm(myMessage)) self.location="?view=products&editid="+thisid+"&deletethis=true"; else void(0);
}

//-->