function recupera(name_ID) {
return document.getElementById(name_ID);
}
function add_campo(rec){
//alert(rec);
if (recupera("campi").innerHTML==""){
if(rec>10){
//var no="yes";
//alert(no);
recupera("campi").innerHTML="Kinder alter
";
}
for(i=10;i<(rec);i++){
recupera("campi").innerHTML+=" ";
}
recupera("campi").innerHTML+="";
}
else{
recupera("campi").innerHTML=" ";
if(rec>10){
//var no="yes";
//alert(no);
recupera("campi").innerHTML="Kinder alter
";
}
for(i=10;i<(rec);i++){
recupera("campi").innerHTML+=" ";
}
recupera("campi").innerHTML+="";
}
}
function add_campoCam(rec){
//alert(rec);
var g;
var z;
g=0;
if(rec==2){
z=2;
}
if(rec==3){
z=2;
}
//alert(rec);
recupera("campiCamere").innerHTML=" ";
recupera("campiCamere3").innerHTML=" ";
recupera("campiBambini3").innerHTML=" ";
for(i=1;i<(rec);i++){
//alert(rec);
recupera("campiCamere").innerHTML=" ";
recupera("campiCamere3").innerHTML=" ";
g++;
recupera("campiCamere").innerHTML="
";
recupera("campiCamere").innerHTML+="
";
if(g==2){
//alert(rec);
recupera("campiCamere3").innerHTML="
";
recupera("campiCamere3").innerHTML+="
";
}
}
}
function add_campoBam(rec){
//alert(rec);
//alert(no);
if (recupera("campiBambini").innerHTML==""){
if(rec>20){
//var no="yes";
//alert(no);
recupera("campiBambini").innerHTML="Kinder alter
";
}
for(i=20;i<(rec);i++){
recupera("campiBambini").innerHTML+=" ";
}
recupera("campiBambini").innerHTML+="";
}
else{
recupera("campiBambini").innerHTML=" ";
if(rec>20){
//var no="yes";
//alert(no);
recupera("campiBambini").innerHTML="Kinder alter
";
}
for(i=20;i<(rec);i++){
recupera("campiBambini").innerHTML+=" ";
}
recupera("campiBambini").innerHTML+="";
}
}
function add_campoBam3(recB){
//alert(rec);
//alert(no);
if (recupera("campiBambini3").innerHTML==""){
if(recB>30){
//alert(no);
recupera("campiBambini3").innerHTML="Kinder alter
";
for(i=30;i<(recB);i++){
recupera("campiBambini3").innerHTML+=" ";
}
recupera("campiBambini3").innerHTML+="";
}
}
else{
recupera("campiBambini3").innerHTML=" ";
if(recB>30){
//var no="yes";
//alert(no);
recupera("campiBambini3").innerHTML="Kinder alter
";
}
for(i=30;i<(recB);i++){
recupera("campiBambini3").innerHTML+=" ";
}
recupera("campiBambini3").innerHTML+="";
}
}