function recupera(name_ID) {
return document.getElementById(name_ID);
}
function add_campoMob(rec){
//alert(rec);
if (recupera("campiMob").innerHTML==""){
if(rec>10){
//var no="yes";
//alert(no);
recupera("campiMob").innerHTML="Eta' Bambini
";
}
for(i=10;i<(rec);i++){
recupera("campiMob").innerHTML+=" ";
}
recupera("campiMob").innerHTML+="";
}
else{
recupera("campiMob").innerHTML=" ";
if(rec>10){
//var no="yes";
//alert(no);
recupera("campiMob").innerHTML="Eta' Bambini
";
}
for(i=10;i<(rec);i++){
recupera("campiMob").innerHTML+=" ";
}
recupera("campiMob").innerHTML+="";
}
}
function add_campoCamMob(rec){
//alert(rec);
var g;
var z;
g=0;
if(rec==2){
z=2;
}
if(rec==3){
z=2;
}
//alert(rec);
recupera("campiCamereMob").innerHTML=" ";
recupera("campiCamere3Mob").innerHTML=" ";
recupera("campiBambini3Mob").innerHTML=" ";
for(i=1;i<(rec);i++){
//alert(rec);
recupera("campiCamereMob").innerHTML=" ";
recupera("campiCamere3Mob").innerHTML=" ";
g++;
recupera("campiCamereMob").innerHTML="
";
recupera("campiCamereMob").innerHTML+="
";
if(g==2){
//alert(rec);
recupera("campiCamere3Mob").innerHTML="
";
recupera("campiCamere3Mob").innerHTML+="
";
}
}
}
function add_campoBamMob(rec){
//alert(rec);
//alert(no);
if (recupera("campiBambiniMob").innerHTML==""){
if(rec>20){
//var no="yes";
//alert(no);
recupera("campiBambiniMob").innerHTML="Eta' Bambini
";
}
for(i=20;i<(rec);i++){
recupera("campiBambiniMob").innerHTML+=" ";
}
recupera("campiBambiniMob").innerHTML+="";
}
else{
recupera("campiBambiniMob").innerHTML=" ";
if(rec>20){
//var no="yes";
//alert(no);
recupera("campiBambiniMob").innerHTML="Eta' Bambini
";
}
for(i=20;i<(rec);i++){
recupera("campiBambiniMob").innerHTML+=" ";
}
recupera("campiBambiniMob").innerHTML+="";
}
}
function add_campoBam3Mob(rec){
//alert(rec);
//alert(no);
if (recupera("campiBambini3Mob").innerHTML==""){
if(rec>30){
//alert(no);
recupera("campiBambini3Mob").innerHTML="Eta' Bambini
";
for(i=30;i<(rec);i++){
recupera("campiBambini3Mob").innerHTML+=" ";
}
recupera("campiBambini3Mob").innerHTML+="";
}
}
else{
recupera("campiBambini3Mob").innerHTML=" ";
if(rec>30){
//var no="yes";
//alert(no);
recupera("campiBambini3Mob").innerHTML="Eta' Bambini
";
}
for(i=30;i<(rec);i++){
recupera("campiBambini3Mob").innerHTML+=" ";
}
recupera("campiBambini3Mob").innerHTML+="";
}
}