
function uploadbanner(zanoxurl)
{	

document.writeln('<form target=\"_top\" name=\"image_form\" action=\"http://www.posterxxl.com/cgi-bin/xxl_cart.cgi\" onSubmit=\"return check_input();\" method=\"POST\" ENCTYPE=\"multipart/form-data\" style=\"display:inline\">');
document.writeln('<table width=\"468\" height="60" background=\"http://www.posterxxl.com/images/de/banner/zanox/403-upload02/background.gif\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">');
document.writeln('<tr>');
document.writeln('<td valign="top">');	
document.writeln('<input type=\"hidden\" name=\"load\" value=\"1\">');
document.writeln('<input type=\"hidden\" name=\"formaction\" value=\"newimg\">');
document.writeln('<input type=\"hidden\" name=\"formsent\" value=\"1\">');
document.writeln('<input type=\"hidden\" name=\"zanox\" value=\"' + zanoxurl + '\">');
document.writeln('<input type=\"hidden\" name=\"upload_id\" value=\"1102953109\">');		
document.writeln('<input type=\"hidden\" name=\"s\" value=\"karznxde\" >');
document.writeln('<input type=\"hidden\" name=\"product\" id=\"dropdown_products\" value=\"3\" >');
document.writeln('<table width=\"468\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">');
document.writeln('<tr>');
document.writeln('<td colspan=\"2\"><img src=\"http://www.posterxxl.com/images/de/banner/zanox/403-upload02/spacer.gif\" alt=\"\" width=\"1\" height=\"32\" border=\"0\"></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td width=\"440\" align=\"right\"><input type=\"file\" name=\"image_file\" class=\"button\" size=\"12\" style=\"font-size: 12px;\"></td>');
document.writeln('<td width=\"28\" align=\"center\"><input type=\"image\" name=\"submit\" id=\"submit\" src=\"http://www.posterxxl.com/images/de/banner/zanox/403-upload02/submit.gif\"></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</form>');	
document.writeln('<script type=\"text/javascript\">');
document.writeln('<!--');
document.writeln(' zanox_tracking();');
document.writeln('//-->');
document.writeln('</script>');
	

}



/******************************************************************************/
/*								posterXXL.com                                 */
/*                         Version 1.2.0 / 16.11.2004                     	  */
/******************************************************************************/

var w = '350';
var h = '200';

function newPop(url,w,h,win) {
	values="scrollbars=no,toolbar=no,status=no,menubar=no,resizeable=yes,width=" + w + ",height=" + h;
	var loadimg = window.open(url,win,values);
}

function newScrollPop(url,w,h,win) {
	values="scrollbars=yes,toolbar=no,status=no,menubar=no,resizeable=yes,width=" + w + ",height=" + h;
	window.open(url,win,values);
}

function closePop() {
	var w = '350';
	var h = '200';
	newPop('/templates/de/xxl_endload.html',w,h,'load');
}

function check_input() {
	/* check file extension */
	var filename = document.image_form.image_file.value;
	if (filename == "") {
		alert(unescape("Bitte w%E4hlen Sie eine Datei aus!"));
		return false;
	}
	else {
		if (document.image_form.dropdown_products.checked == true && document.image_form.product_dropdown.value == 0) {
			alert(unescape("Bitte w%E4hlen Sie ein Produkt aus!"));
			return false;
		}
		else {
			var filetypes = "jpg,jpeg,jpe";
			var regtypes = filetypes.replace(/,/g,'|');
			var reg = new RegExp("(.*)\.(" + regtypes + ")$", "i");
			var ret = filename.match(reg);
			if (ret) {
				newPop('http://www.posterxxl.com/cgi-bin/xxl_load.cgi?wn=cart',w,h,'load');
				return true;
			}
			else {
				alert(unescape("Ihre Datei hat nicht den korrekten Dateityp. Wir akzeptieren nur jpg,jpeg,jpe."));
				return false;
			}
		}
	}
}

function start_transfer() {
	newPop('http://www.posterxxl.com/cgi-bin/xxl_load.cgi?wn=cart&type=transfer',w,h,'load');
}

function pre_select_radio() {
	document.image_form.dropdown_products.checked = true;
}

function showNewsletter(){
	document.getElementById('xxlnl').style.visibility="visible";
	location.href="#up";
}
function closeNewsletter(){
	document.getElementById('xxlnl').style.visibility="hidden";
}

function zanox_tracking(){
	var datum = new Date();
	document.image_form.action="http://www.posterxxl.com/cgi-bin/xxl_cart.cgi?s=karznxde";
	document.image_form.method="post";
	document.image_form.upload_id.value=datum.getTime();
}
