// JavaScript Document
function showform()
{
document.getElementById('Layer1').style.visibility="visible";
}
function hideform()
{
document.getElementById('Layer1').style.visibility="hidden";
}


 var countryLists = new Array(5) 
 countryLists["empty"] = ["Select a Option"]; 
 countryLists["Buy"] = ["Lease", "Buy", "Company/Individual", "Consultant"]; 
 countryLists["Sell"] = ["Developers", "Investors", "Property Owner", "Consultants", "Individual"]; 
 countryLists["Rent"] = ["Lease", "Company/Individual", "Consultant"]; 
  function getoptions(selectObj) { 
  var idx = selectObj.selectedIndex; 
  var which = selectObj.options[idx].value; 
  cList = countryLists[which]; 
  var cSelect = document.getElementById("country"); 
  var len=cSelect.options.length; 
 while (cSelect.options.length > 0) { 
 cSelect.remove(0); 
 } 
 var newOption; 
  for (var i=0; i<cList.length; i++) { 
 newOption = document.createElement("option"); 
 newOption.value = cList[i];
 newOption.text=cList[i]; 
 try { 
 cSelect.add(newOption);
 } 
 catch (e) { 
 cSelect.appendChild(newOption); 
 } 
 } 
 } 
