function beautynet_Produktsuche(link)
{
// ********************************************************************************
// *** set the following values: ***
// ********************************************************************************

var img_pfad		=	"http://community.beautynet.de/banner/affiliates/NEW/HTML-Banner/Produktsuche/"
var ahref_hp		=	"http://www.beautynet.de/is-bin/INTERSHOP.enfinity/eTS/Beautynet/de/-/EUR/BN_CoopPartner-Start?SRC=zanox"
var ahref_string	=	"&SERVER=eCS&PIPELINE=BN_DisplayProductInformation-Start&PARAM_NAME=ProductSKU&PARAM_VAL="
var strStyle		=	"style=\"FONT-SIZE:10px; WIDTH:100px; FONT-FAMILY: Verdana, Arial, Helvetica\""

// Zufallszahl generieren
var min_nr	=	1			// kleinste Bildnummer
var max_nr	=	10			// groesste Bildnummer
var zufall	=	Math.floor(Math.random()*(max_nr-(min_nr-1)))+min_nr


var print_product = new Array();
print_product[0] = new Array();

print_product[1] = new Array();
print_product[1]["name"]	= "Hugo Boss";
print_product[1]["produkt"]	= "HUGO DARK BLUE";
print_product[1]["artnr"]	= "040.203.003";

print_product[2] = new Array();
print_product[2]["name"]	= "Jean Paul Gaultier";
print_product[2]["produkt"]	= "LE MALE";
print_product[2]["artnr"]	= "040.203.018";

print_product[3] = new Array();
print_product[3]["name"]	= "Joop!";
print_product[3]["produkt"]	= "NIGHTFLIGHT";
print_product[3]["artnr"]	= "132.014";

print_product[4] = new Array();
print_product[4]["name"]	= "Chanel";
print_product[4]["produkt"]	= "N 19";
print_product[4]["artnr"]	= "300101152-1";

print_product[5] = new Array();
print_product[5]["name"]	= "Calvin Klein";
print_product[5]["produkt"]	= "CK ONE";
print_product[5]["artnr"]	= "131.002";

print_product[6] = new Array();
print_product[6]["name"]	= "Hugo Boss";
print_product[6]["produkt"]	= "DEEP RED FOR WOMEN";
print_product[6]["artnr"]	= "300102371";

print_product[7] = new Array();
print_product[7]["name"]	= "Biotherm";
print_product[7]["produkt"]	= "AQUATHERMALE";
print_product[7]["artnr"]	= "300102722";

print_product[8] = new Array();
print_product[8]["name"]	= "Hugo Boss";
print_product[8]["produkt"]	= "BALDESSARINI";
print_product[8]["artnr"]	= "300104583";

print_product[9] = new Array();
print_product[9]["name"]	= "Givenchy";
print_product[9]["produkt"]	= "GIVENCHY HOMME";
print_product[9]["artnr"]	= "300104599-1";

print_product[10] = new Array();
print_product[10]["name"]	= "Lacoste";
print_product[10]["produkt"]	= "LACOSTE POUR HOMME";
print_product[10]["artnr"]	= "300104766-1";



// ********************************************************************************
// *** calling part: (don't change!)***
// ********************************************************************************

document.write('<form onsubmit="return beautynet_produktsuche_jumpto(this,')
document.write("'" + link + "'")
document.writeln(')">')
document.writeln('<table width="468" height="60" border="0" cellpadding="0" cellspacing="0" height="60" bgcolor="#CC3266" background="' + img_pfad + 'bn_html_1_back.gif">')
document.writeln('<tr>')
document.writeln('<td width="136"><a href="' + link + ahref_hp + '" target="_blank"><img src="' + img_pfad + 'bn_html_1_logo.gif" width="136" height="60" border="0" alt="zu beautynet.de"></a></td>')
document.writeln('<td width="133"><a href="' + link + ahref_hp + '" target="_blank"><img src="' + img_pfad + 'bn_html_1_text.gif" width="133" height="60" border="0" alt="zu beautynet.de"></a></td>')
document.writeln('<td width="137" align="center">')
document.writeln('<table width="130" border="0" cellpadding="0" cellspacing="0">')
document.writeln('<tr>')
document.writeln('<td colspan="2"><img src="' + img_pfad + 'bn_html_1_suche.gif" width="70" height="9"></td>')
document.writeln('</tr>')
document.writeln('<tr>')
document.writeln('<td width="103" valign="top">')
if(document.layers){
	document.writeln('<input name="produktsuche" type="text" value="' + print_product[zufall]["name"] + '" size="12">')
}
else{
	document.writeln('<input name="produktsuche" type="text"' + strStyle + ' value="' + print_product[zufall]["name"] + '" size="12">')
}
document.writeln('</td>')
document.writeln('<td width="27" valign="top">')
document.writeln('<input name="gosearch" type="image" src="' + img_pfad + 'bn_html_1_go.gif" alt="Suchen" width="20" height="20" border="0">')
document.writeln('</td>')
document.writeln('</tr>')
document.writeln('</table>')
document.writeln('</td>')
document.writeln('<td width="62"><a href="' + link + ahref_hp + ahref_string + print_product[zufall]["artnr"] + '" target="_blank"><img src="' + img_pfad + print_product[zufall]["artnr"] + '.jpg" width="62" height="60" border="0" alt="' + print_product[zufall]["produkt"] + ' -> zum Produktdetail"></a></td>')
document.writeln('</tr>')
document.writeln('</table>')
document.writeln('</form>')
}


// ********************************************************************************
// *** redirect: (don't change!)***
// ********************************************************************************

target="http://www.beautynet.de/is-bin/INTERSHOP.enfinity/eTS/Beautynet/de/-/EUR/BN_CoopPartner-Start?SRC=zanox&SERVER=eCS&PIPELINE=BN_ProfiSearch-StartSingleParameter&PARAM_NAME=search_query_keyword&PARAM_VAL=";

function beautynet_produktsuche_jumpto(queryform,zanoxlink)
{
    var strSearchString = queryform.produktsuche.value;
    var strNewSearchString = strSearchString.replace(/ /,"+");
    window.open(zanoxlink + target + strNewSearchString, "result");
  return false;
}