window.onerror=null;

function jumpurl (form) {
 location = form.URL.options[form.URL.selectedIndex].value;
 return true;
}

function check_menge(menge){
 if (form.qty.value > menge) { 
  alert('Die gewünschte Menge ist größer als der Warenbestand.\nDie maximal verfügbare Menge wird eingesetzt.');
  form.qty.value=menge;
  return false;
 }else{return true;}
}

function reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

var Fenster = null;
function pop(Seite,w,h,scroll){
 LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
 TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
 settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar = no';
 Fenster = window.open(Seite,"Streetrods",settings);
}

var wnd = null;
function pic(img_url, img_title, img_width, img_height, copyright) {
  links = (screen.width) ? (screen.width-img_width)/2 : 0;
  oben = (screen.height) ? (screen.height-img_height)/2 : 0;
  wnd = open("",""+(img_title)+"","width="+(img_width)+",height="+(img_height)+",innerWidth="+(img_width)+",innerHeight="+(img_height)+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,dependent=0,top="+oben+",left ="+links);
  with(wnd.document) {
   open("text/html")
   writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"");
	  writeln(" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">");
   writeln("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"de\" lang=\"de\" onContextMenu=\"return event.ctrlKey\">");
   writeln("<head><title>"+img_title+"</title>");
   writeln("<meta name=\"copyright\" content=\"i&bull;&bull;design | Deutschland/Germany. All rights reserved.\"/>");
   writeln("<meta name=\"publisher\" content=\"i&bull;&bull;design\"/>");
   writeln("<meta name=\"author\" content=\"i&bull;&bull;design\"/>");
   writeln("<meta http-equiv=\"cache-control\" content=\"no-cache\"/>");
   writeln("<meta http-equiv=\"imagetoolbar\" content=\"no\"/>");
   writeln("</head>");
   writeln("<body style=\"margin:0;padding:0;border:0;background:#e9e9e9;overflow:hidden;\" onmouseover=\"window.status='"+img_title+"'; return true;\" onload=\"window.status='"+img_title+"'; return true;\">");
   writeln("<a onfocus=\"this.blur()\" href=\"javascript:window.close();\"><img src=\"" + img_url + "\" style=\"width:"+img_width+"px;height:"+img_height+"px;margin:0;padding:0;border:0;\" alt=\""+img_title+"\" /></a>");
   writeln("<a onfocus=\"this.blur()\" href=\"javascript:window.close();\"><div style=\"position:absolute;z-index:2;width:96%;bottom:6px;color:#fff;font:700 12px Verdans, sans-serif;text-align:right;filter:alpha(opacity=20);\">(&copy;) "+copyright+"</div></a>");
   writeln("</body></html>");
   close();
  };
  wnd.focus();
}
