function bon(cell){
  cell.style.backgroundColor = "#B48375";
}
function boff(cell){
  cell.style.backgroundColor = "#FAE6D3";
}

function showImg(img){
  window.name='opener';  
//  window.open('newimages/pic'+img+'.jpg','popup','resizable=yes,scrollbars=yes,top=80,left=50,width=500,height=400');
  window.open('show_img.php?img='+img,'popup','resizable=yes,scrollbars=yes,top=80,left=50,width=500,height=400');
}


function specialOffer(lang){
  window.name='opener';  
  window.open('show_poster.php?lang='+lang,'popup','resizable=yes,scrollbars=no,top=30,left=50,width=700,height=500');
}

function showDoc(lang,doc){
  window.name='opener';  
  window.open('show_doc.php?lang='+lang+'&doc='+doc,'popup','resizable=no,scrollbars=yes,top=30,left=100,width=700,height=550');
}

function printDoc(lang,doc){
  window.name='opener';  
  window.open('print_doc.php?lang='+lang+'&doc='+doc,'popup','resizable=no,scrollbars=yes,top=80,left=100,width=550,height=400');
}

function showPlan(img){
  window.name='opener';  
  window.open('show_plan.php?img='+img,'popup','resizable=yes,scrollbars=yes,top=80,left=100,width=480,height=400');
}

function on(nos) {
  if (document.images)
    document[nos].src = eval(nos + "on.src");
}	
function off(nos) {
 if (document.images)
   document[nos].src = eval(nos + "off.src");
}
	
function CheckData(){
  if (document.mainform.person.value=="") {
    alert("Please Enter value for 'Name' field!");
    document.mainform.person.focus();
    return false;
  }
  /*
  if (document.mainform.email.value=="") {
    alert("Please Enter value for 'E-mail' field!");
    document.mainform.email.focus();
    return false;
  }
  */
  if (document.mainform.phone.value=="") {
    alert("Please Enter value for 'Phone' field!");
    document.mainform.phone.focus();
    return false;
  }
  if (document.mainform.sbl.value==0) {
    alert("Please Enter value for 'Sell/Buy/Lease' field!");
    document.mainform.sbl.focus();
    return false;
  }
  if (document.mainform.hag.value==0) {
    alert("Please Enter value for 'House/Apartment' field!");
    document.mainform.hag.focus();
    return false;
  }
  /*
  if (document.mainform.district.value==0) {
    alert("Please Enter value for 'District' field!");
    document.mainform.district.focus();
    return false;
  }
  if (document.mainform.address.value=="") {
    alert("Please Enter value for 'Address' field!");
    document.mainform.address.focus();
    return false;
  }
  if (document.mainform.square.value=="") {
    alert("Please Enter value for 'Square' field!");
    document.mainform.square.focus();
    return false;
  }  
  if (document.mainform.floor.value=="") {
    alert("Please Enter value for 'Floor' field!");
    document.mainform.floor.focus();
    return false;
  }
  if (document.mainform.rooms.value=="") {
    alert("Please Enter value for 'Rooms' field!");
    document.mainform.rooms.focus();
    return false;
  }  
  if (document.mainform.seria.value=="") {
    alert("Please Enter value for 'Rooms' field!");
    document.mainform.seria.focus();
    return false;
  }  
  if (document.mainform.price.value=="") {
    alert("Please Enter value for 'Price' field!");
    document.mainform.price.focus();
    return false;
  }      
    */
  return true;
}
