function affiliAd(zanox_tracking_function, zanox_tracking_param, plz) {
document.writeln('<div style="width:180px; height: 150px; overflow:hidden;">');	
/*document.writeln('<form method="get" action="http://www.immonet.de/search.do" style="margin:0px; padding:0px;" target="_blank" onSubmit="if(this.zip.value==''||this.zip.value==this.zip.defaultValue) { alert('Bitte geben Sie einen Ort an.'); this.zip.focus(); return false; } return true;">');*/
document.writeln('<form method="get" action="' + zanox_tracking_function + '" style="margin:0px; padding:0px;" target="_blank" onSubmit="if(this.zip.value==\'\'||this.zip.value==this.zip.defaultValue) { alert(\'Bitte geben Sie einen Ort an.\'); this.zip.focus(); return false; } return true;">');
document.writeln('<input type="hidden" name="' + zanox_tracking_param + '" value="http://www.immonet.de/search.do?">'); 
document.writeln('<table border="0" cellspacing="0" cellpadding="0">');
document.writeln('<tr valign="top">');
document.writeln('<td colspan="2"><a href="' + zanox_tracking_function + '?' + zanox_tracking_param + '=http://www.immonet.de/?mandant=Affiliate_Zanox&utm_source=zanox&utm_medium=affiliate&utm_campaign=affiliate" title="Immobilien" target="_blank"><img src="http://ad.boreus.de/images/set117_180x150_logo.gif" width="180" height="77" alt="Immobilien" border="0" /></a></td>');
document.writeln('</tr>');
document.writeln('<tr valign="top">');
document.writeln('<td><a href="' + zanox_tracking_function + '?' + zanox_tracking_param + '=http://www.immonet.de/?mandant=Affiliate_Zanox&utm_source=zanox&utm_medium=affiliate&utm_campaign=affiliate" title="Immobilien" target="_blank"><img src="http://ad.boreus.de/images/set117_180x150_motiv.gif" width="90" height="73" alt="Immobilien" border="0" /></a></td>');
document.writeln('<td background="http://ad.boreus.de/images/set117_180x150_form.gif">');
document.writeln('<select name="parentcat" id="parentcat" style="font-size: 10px; font-family:Arial; width:77px; color:#01325B; margin: 0 0 2px 5px;">');
document.writeln('<option value="1" selected="selected">Wohnung</option>');
document.writeln('<option value="2">Haus</option>');
document.writeln('<option value="188">WG</option>');
document.writeln('<option value="3">Grundst&uuml;ck</option>');
document.writeln('</select>');
document.writeln('<input name="zip" type="text" id="zip" style="font-size: 10px; font-family:Arial; width:77px; color:#01325B; margin: 0 0 2px 5px;" onFocus="if(this.value == this.defaultValue) this.value=\'\';" value="' + plz + '" size="20">');
document.writeln('<input name="imageField" type="image" src="http://ad.boreus.de/images/set117_190x110_button.gif" style="margin: 0 0 0 5px;" alt="Immobilien suchen" width="73" height="19" border="0">');
document.writeln('<input name="objecttype" type="hidden" id="objecttype" value="1">');
document.writeln('<input name="state" type="hidden" id="state" value="1">');
document.writeln('<input name="ordertype" type="hidden" id="ordertype" value="asc">');
document.writeln('<input name="orderby" type="hidden" id="orderby" value="topobject">');
document.writeln('<input name="listsize" type="hidden" id="listsize" value="10">');
document.writeln('<input name="fromrooms" type="hidden" id="fromrooms">');
document.writeln('<input name="torooms" type="hidden" id="torooms">');
document.writeln('<input name="fromarea" type="hidden" id="fromarea">');
document.writeln('<input name="toarea" type="hidden" id="toarea">');
document.writeln('<input name="fromprice" type="hidden" id="fromprice">');
document.writeln('<input name="toprice" type="hidden" id="toprice">');
document.writeln('<input name="radius" type="hidden" id="radius" value="0">');
document.writeln('<input name="mandant" type="hidden" id="mandant" value="Affiliate_Zanox&utm_source=zanox&utm_medium=affiliate&utm_campaign=affiliate">');
document.writeln('<input name="outputtype" type="hidden" id="outputtype" value="ajax">');		
document.writeln('<input name="marketingtype" type="hidden" id="marketingtype" value="-1">');	
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</form>');
document.writeln('</div>');
}
