f=0;
function sPic(t,url) {
  try {
    f.close();
  }
  catch(e){
    
  }
  finally {

  }
  f=0;
  f = window.open (url, '', 'toolbar=0,scrollbars=0,status=0,menubar=0,resizable=1,width=800,height=600');
  f.document.write ('<html><he' + 'ad><tit' + 'le>'+t+'</'+'title></'+'head><body topmargin=0 leftmargin=0 style="font-family:verdana;"><img name="img" onclick="window.close();" src="' + url + '" onload="javascript:window.resizeTo(document.images[0].width+12,document.images[0].height+60);"></'+'body></'+'html>');
  f.focus();
  return true;
}

function HledatHotely() {
  if(window.event.keyCode == 13) {
    window.event.returnValue = false;
    document.getElementById(strIDPrefix + 'ibVyhledat').click();
    return false;
  }
  return true;
}

function GetTownList(intRegionID, intDestinationID, blnHasAcc) {
  document.getElementById('divCities').innerHTML = '<select class="select"><option>Nahravam...</option></select>';
  wtcCallBack('SeznamMest', intRegionID + ';' + intDestinationID + ';' + intCountryID + ';' + blnHasAcc);
  if (intRegionID == '') document.getElementById(strIDPrefix + 'ddlRegion').value = '0';
  if (intDestinationID == '') document.getElementById(strIDPrefix + 'ddlDestination').value = '0';
}

function ValidateMesto(source, arguments) {
  arguments.IsValid = (document.getElementById(strIDPrefix + 'DetailInfo_txtAccCity').value.length > 0 || document.getElementById(strIDPrefix + 'DetailInfo_ddlDistrict').value > 0);
}

