//****** Advanced DHTML Popup Pro Version 2.430.0246.203.021,  Build: 150 ******



// Copyright (c) Digital Flow Software 2006-2007

// The present javascript code is property of Digital Flow Software.

// This code can only be used inside Internet/Intranet web sites located on *web servers*, as the outcome of a licensed Advanced DHTML Popup application only. 

// This code *cannot* be used inside distributable implementations (such as demos, applications or CD-based webs), unless this implementation is licensed with an "Advanced DHTML Popup License for Distributed Applications". 

// Any unauthorized use, reverse-engineering, alteration, transmission, transformation, facsimile, or copying of any means (electronic or not) is strictly prohibited and will be prosecuted.

// ***Removal of the present copyright notice is strictly prohibited***



var df,rf=false,na=navigator.userAgent,dt=document,op=(na.indexOf('Opera')!=-1),dm=(dt.getElementById)?true:false,ie5x=(dt.all&&dm),mci=(na.indexOf('Mac')!=-1);df=((ie5x||op)&&mci);decide();function decide(){if(df){return;}else{rf=true;}}

if(rf){

function initADP(){bdf=0;

// *** Begin advanced user scripting area ***

   htmlstring="<iframe src=\"http://www.abpanama.com/popup/01.html\" name=\"adpiframe\" id=\"adpiframe\" width=100% height=100% align=\"center\" Frameborder=\"0\" Scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\"></iframe>"

   new adp("UniqueID",htmlstring,"<center><img src=\"http://www.abpanama.com/images/s.gif\" />Looking to invest in Panama Real Estate?</center>");

   if(isc)return;

   adpSlidein('UniqueID');show('UniqueID');

// *** End advanced user scripting area ***

}

if(window.attachEvent){window.attachEvent('onload', initADP);}else{if(typeof window.onload == 'function'){var preADP = window.onload;window.onload = function(){preADP();initADP();}}else{window.onload = initADP;}}

}

//PROPERTIES REQUESTS FORM VALIDATION
function validate(nameform)
 {
 missinginfo="";
if ((nameform.email.value == "") || (nameform.emailF.value.indexOf('@') == -1) || (nameform.email.value.indexOf('.') == -1)) 
 { missinginfo += "\n     -  Email not correct or miss"; }
 
if(nameform.house_sale.checked==false && nameform.house_rent.checked==false && nameform.apart_sale.checked==false &&  nameform.apart_rent.checked==false  && nameform.investment.checked==false && nameform.commercial.checked==false && nameform.land_sale.checked==false && nameform.land_rent.checked==false && nameform.pre_const_houses.checked==false &&  nameform.pre_const_apart.checked==false &&nameform.short_term_furnished.checked==false) 
  {	missinginfo += "\n     - You have to select at least one property type."; }

if (nameform.price_from.value=="" && nameform.price_to.value=="" ) 
  {	missinginfo += "\n     - You have to fill at least one price field."; }
if (nameform.interest.checked==false) 
  {	missinginfo += "\n     - You have to choose one option of interest."; }
if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"These fields are missing:\n" +
missinginfo + "\n_____________________________" +
"\nTry again!";
alert(missinginfo);
return false;
} else return true; 
 
 }
//END PROPERTIES REQUESTS FORM VALIDATION


function go(loc) {
window.open(loc, '_self');
}