/**
* Autor: Jorge Casas [jorgecasas@iternova.net]
* Version: 1.1.0
* Fecha modificación: 20090715
*/
/** Devuelve parametros GET para la URL de actualizacion JS/HTML en el buscador de apartamentos  */
function apartamentosSearchGETAdvanced(){
	var getURL='';
	getURL = getURL + '&lat='+getURLparam('lat');
	getURL = getURL + '&lng='+getURLparam('lng');
	getURL = getURL + '&radio='+document.searchapartamentosform.radio.value;
	getURL = getURL + '&own='+document.searchapartamentosform.own.value;
	
	getURL = getURL + '&address='+getURLparam('address');
	getURL = getURL + '&personasmin='+getURLparam('personasmin');
	getURL = getURL + '&dateIN='+getURLparam('dateIN');
	getURL = getURL + '&dateOUT='+getURLparam('dateOUT');
	
	getURL = getURL + '&tags='+document.searchapartamentosform.tags.value;
	getURL = getURL + '&preciomin='+document.searchapartamentosform.preciomin.value;
	getURL = getURL + '&preciomax='+document.searchapartamentosform.preciomax.value;
	getURL = getURL + '&tipoapartamento='+document.searchapartamentosform.tipoapartamento.value;
	getURL = getURL + '&aseosmin='+document.searchapartamentosform.aseosmin.value;
	getURL = getURL + '&plazasgarajemin='+document.searchapartamentosform.plazasgarajemin.value;
	getURL = getURL + '&dormitoriosmin='+document.searchapartamentosform.dormitoriosmin.value;
	
	getURL = getURL + '&searchprofilesave='+getCheckBoxChecked(document.searchapartamentosform.searchprofilesave);
	getURL = getURL + '&aireacondicionado='+getRadioButtonSelectedValue(document.searchapartamentosform.aireacondicionado);
	getURL = getURL + '&calefaccion='+getRadioButtonSelectedValue(document.searchapartamentosform.calefaccion);
	
	getURL = getURL + '&accesible='+getRadioButtonSelectedValue(document.searchapartamentosform.calefaccion);
	getURL = getURL + '&instalacionesocio='+getRadioButtonSelectedValue(document.searchapartamentosform.calefaccion);
	getURL = getURL + '&piscina='+getRadioButtonSelectedValue(document.searchapartamentosform.calefaccion);
	getURL = getURL + '&cocinaequipada='+getRadioButtonSelectedValue(document.searchapartamentosform.calefaccion);
	getURL = getURL + '&menaje='+getRadioButtonSelectedValue(document.searchapartamentosform.calefaccion);
	getURL = getURL + '&sabanastoallas='+getRadioButtonSelectedValue(document.searchapartamentosform.calefaccion);
	getURL = getURL + '&internet='+getRadioButtonSelectedValue(document.searchapartamentosform.calefaccion);
	getURL = getURL + '&television='+getRadioButtonSelectedValue(document.searchapartamentosform.calefaccion);
	getURL = getURL + '&animales='+getRadioButtonSelectedValue(document.searchapartamentosform.calefaccion);

	getURL = getURL + '&pagination='+document.searchapartamentosform.pagination.value;
	getURL = getURL + '&num='+document.searchapartamentosform.num.value;
	return getURL;
}
/** Devuelve parametros GET para la URL de actualizacion JS/HTML en el buscador de apartamentos  */
function apartamentosSearchGETSimple(){
	var getURL='';
	getURL = getURL + '&lat='+getURLparam('lat');
	getURL = getURL + '&lng='+getURLparam('lng');
	getURL = getURL + '&address='+getURLparam('address');
	getURL = getURL + '&personasmin='+getURLparam('personasmin');
	getURL = getURL + '&dateIN='+getURLparam('dateIN');
	getURL = getURL + '&dateOUT='+getURLparam('dateOUT');
	//getURL = getURL + '&preciomin='+document.searchapartamentosform.preciomin.value;
	//getURL = getURL + '&preciomax='+document.searchapartamentosform.preciomax.value;
	
	getURL = getURL + '&pagination=1';
	getURL = getURL + '&num='+getURLparam('num');
	return getURL;
}
