var texts=new Array(
   new Array(
      "This is a present for",
      "First name",
      "Last name",
      "Street",
      "City",
      "Postcode",
      "Country",
      " missing",
      " for present missing",
      "Your order has been send.",
      "Please accept the Terms and Conditions before your order can be sent.",
      "Please enter a valid eMail address."),
   new Array(
      "Dies ist ein Geschenk f&uuml;r",
      "Vorname",
      "Nachname",
      "Stra&szlig;e",
      "Stadt",
      "Postleitzahl",
      "Land",
      " fehlt",
      " für Geschenk fehlt",
      "Ihre Bestellung wurde aufgegeben.",
      "Bitte akzeptieren Sie die Geschaeftsbedingungen bevor Ihre Bestellung aufgegeben werden kann.",
      "Bitte eine gueltige eMail Adresse eingeben.")
   );

function presentadd(l){var or,oc,o1,o2,oo,i;
if(document.all.present.checked){
or=document.all.moreinfo.insertRow();
oc=or.insertCell();oc.width="20%";oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.width="3%";oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.width="77%";oc.innerHTML="&nbsp;";
or=document.all.moreinfo.insertRow();
oc=or.insertCell();oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML=texts[l][0];
or=document.all.moreinfo.insertRow();
oc=or.insertCell();oc.align="right";oc.innerHTML="eMail";
oc=or.insertCell();oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML="<input type=\"text\" size=\"40\" maxlength=\"80\" name=\"pmail\">";
or=document.all.moreinfo.insertRow();
oc=or.insertCell();oc.align="right";oc.innerHTML=texts[l][1];
oc=or.insertCell();oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML="<input type=\"text\" size=\"40\" maxlength=\"80\" name=\"pfname\">";
or=document.all.moreinfo.insertRow();
oc=or.insertCell();oc.align="right";oc.innerHTML=texts[l][2];
oc=or.insertCell();oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML="<input type=\"text\" size=\"40\" maxlength=\"80\" name=\"plname\">";
or=document.all.moreinfo.insertRow();
oc=or.insertCell();oc.align="right";oc.innerHTML=texts[l][3];
oc=or.insertCell();oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML="<input type=\"text\" size=\"40\" maxlength=\"80\" name=\"pstreet1\">";
or=document.all.moreinfo.insertRow();
oc=or.insertCell();oc.align="right";oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML="<input type=\"text\" size=\"40\" maxlength=\"80\" name=\"pstreet2\">";
or=document.all.moreinfo.insertRow();
oc=or.insertCell();oc.align="right";oc.innerHTML=texts[l][4];
oc=or.insertCell();oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML="<input type=\"text\" size=\"40\" maxlength=\"80\" name=\"pcity\">";
or=document.all.moreinfo.insertRow();
oc=or.insertCell();oc.align="right";oc.innerHTML=texts[l][5];
oc=or.insertCell();oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML="<input type=\"text\" size=\"10\" maxlength=\"10\" name=\"pzip\">";
or=document.all.moreinfo.insertRow();
oc=or.insertCell();oc.align="right";oc.innerHTML=texts[l][6];
oc=or.insertCell();oc.innerHTML="&nbsp;";
oc=or.insertCell();oc.innerHTML="<select name=\"pcountry\"></select>";
o1=document.all.country.options;o2=document.all.pcountry.options;
for (i=0;i<o1.length;i++){oo=document.createElement("option");o2.add(oo);oo.text=o1(i).text;
oo.selected=o1(i).selected;oo.value=o1(i).value}}
else{presentremove()}}

function presentremove(){while(document.all.moreinfo.rows.length>0){document.all.moreinfo.deleteRow()}}

function checkval(l){
if(document.all.visitor_email_address.value==''){alert("eMail" + texts[l][7]);document.all.visitor_email_address.focus();return 0}
if (document.all.visitor_email_address.value.indexOf("@")==-1){
alert(texts[l][11]);document.all.visitor_email_address.focus();return 0}
if(document.all.fname.value==''){alert(texts[l][1] + texts[l][7]);document.all.fname.focus();return 0}
if(document.all.lname.value==''){alert(texts[l][2] + texts[l][7]);document.all.lname.focus();return 0}
if(document.all.street1.value==''){alert(texts[l][3] + texts[l][7]);document.all.street1.focus();return 0}
if(document.all.city.value==''){alert(texts[l][4] + texts[l][7]);document.all.city.focus();return 0}
if(document.all.zip.value==''){alert(texts[l][5] + texts[l][7]);document.all.zip.focus();return 0}
if(document.all.country.value==''){alert(texts[l][6] + texts[l][7]);document.all.country.focus();return 0}
if(document.all.present.checked){
if (document.all.pmail.value!=''){if (document.all.pmail.value.indexOf("@")==-1){
alert(texts[l][11]);document.all.pmail.focus();return 0}}
if(document.all.pfname.value==''){alert(texts[l][1] + texts[l][8]);document.all.pfname.focus();return 0}
if(document.all.plname.value==''){alert(texts[l][2] + texts[l][8]);document.all.plname.focus();return 0}
if(document.all.pstreet1.value==''){alert(texts[l][3] + texts[l][6]);document.all.pstreet1.focus();return 0}
if(document.all.pcity.value==''){alert(texts[l][4] + texts[l][6]);document.all.pcity.focus();return 0}
if(document.all.pzip.value==''){alert(texts[l][5] + texts[l][8]);document.all.pzip.focus();return 0}
if(document.all.pcountry.value==''){alert(texts[l][6] + texts[l][8]);document.all.pcountry.focus();return 0}}
if(!document.all.tandc.checked){alert(texts[l][10]);document.all.tandc.focus();return 0}
document.order.submit();
}
