function stateProgress(){
document.getElementById("regionTableAjax1").innerHTML = "
Loading...
";
}
function toggleContents1(act)
{
if(act == 1){
document.getElementById('content_div1').style.display = "block";
document.getElementById('frame1').style.display = "block";
document.getElementById('frame1').style.height = '200';
return;
}else{
document.getElementById('content_div1').style.display = "none";
document.getElementById('frame1').style.height = '0';
}
}
function getPopularLocation(myObj){
var d = document.propertySearch;
if(myObj == ""){
$('ajaxPopularLocation').style.display = "none";
}else{
$('ajaxPopularLocation').style.display = "inline";
}
new Ajax.Request('http://www.worldwidegroup.eu/rental/get-popular-location.php',
{
method:'post',
parameters: 'countryId=' + myObj ,
onSuccess: function(transport){
var response = transport.responseText || "Please refresh...";
$('ajaxPopularLocation').innerHTML = "";
$('ajaxPopularLocation').innerHTML = response;
},
onFailure: function(){ alert('Please refresh...') }
});
}
function validateCountry(){
if(document.minisearch.search_Country.value == '' || document.minisearch.search_Country.value == '0'){
alert('Please select country...');
document.minisearch.search_Country.focus;
return false;
}
return true;
}
function lettersearch(){
if(document.minisearch.keySearch.value == 'town / city / address / postcode' || document.minisearch.keySearch.value == ''){
alert('Please Enter Property Name OR Location (town / city / address / postcode)...');
document.minisearch.keySearch.focus;
return false;
}
return true;
}
function propertyidsearch(){
if(document.minisearchId.propertyIDSearch.value == ''){
alert('Please Enter Property ID...');
document.minisearchId.propertyIDSearch.focus;
return false;
}
return true;
}
function propidsearch(){
if(document.minisearchId.propertyIDSearch.value == ''){
alert('Please Enter Property ID...');
document.minisearchId.propertyIDSearch.focus;
return false;
}
return true;
}
function vali(){
var c = document.getPrice;
if(c.arrival_date.value == "")
{
alert("Please Select From Date....");
c.arrival_date.focus();
return false;
}
if(c.departure_date.value == "")
{
alert("Please Select To Date....");
c.departure_date.focus();
return false;
}
return true;
}
function changeImage( mediaId, largeImg, tagLine )
{
var mainImage = document.getElementById( 'mainImage' );
var newImageSrc = mediaId;
mainImage.src = newImageSrc;
var mainImageLink = document.getElementById( 'mainImageLink' );
mainImageLink.href = largeImg;
var mainImageTitle = document.getElementById( 'tagLineTitle' );
mainImageTitle.innerHTML = tagLine;
}
function popup(url,wi,hi)
{
newWindow = window.open(url,'daughter','menubar=no,toolbar=no,location=no,scrollbars=yes,resizable=no,width='+wi+',height='+hi+',screenX=100,screenY=100,top=250,left=50');
if (newWindow.opener == null) newWindow.opener = self;
newWindow.focus();
}
var map = null;
var geocoder = null;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
geocoder = new GClientGeocoder();
}
}
function mapProgress(){
document.getElementById("map_canvas").innerHTML = "";
}
function showDetailMap(myObj){
mapProgress();
new Ajax.Request('http://www.worldwidegroup.eu/rental/mapInfo1.php',
{
method:'post',
parameters: 'pId=' + myObj,
onSuccess: function(transport){
var response = transport.responseText || "Error: 10005...";
initialize();
var spliRes = response.split("###");
var len = spliRes.length;
//alert(response);
for(i=0; i<(len-1); i++){
var args = spliRes[0].split("@@@");
showAddressDetail(args[0], args[1], args[2], args[3], args[4], 11);
}
},
onFailure: function(){ alert('Please refresh...') }
});
}
function validateboooking(){
var c = document.getPrice;
if(c.adults.value == "" || c.adults.value == "0")
{
alert("Please enter No.of Adults....");
c.adults.focus();
return false;
}
if(c.firstName.value == "")
{
alert("Please enter first name....");
c.firstName.focus();
return false;
}
if(c.lastName.value == "")
{
alert("Please enter last name....");
c.lastName.focus();
return false;
}
if(c.address1.value == "")
{
alert("Please enter your address....");
c.address1.focus();
return false;
}
if(c.country.value == "")
{
alert("Please select your country....");
c.country.focus();
return false;
}
if(c.state.value == "")
{
alert("Please enter your state/county....");
c.state.focus();
return false;
}
if(c.city.value == "")
{
alert("Please enter your city/town....");
c.city.focus();
return false;
}
if(c.zip.value == "")
{
alert("Please enter your postcode....");
c.zip.focus();
return false;
}
return true;
}
function loadProgressajaxCountry(){
$('ajaxCountryBox').innerHTML = "Loading Countries...";
}
function getAjaxCountry()
{
//loadProgressajaxCountry();
new Ajax.Request('http://www.worldwidegroup.eu/rental/ajaxSearchBox.php',
{
method:'post',
parameters: '',
onSuccess: function(transport){
var response = transport.responseText || "Sorry please refresh...";
$('ajaxCountryBox').innerHTML = "";
$('ajaxCountryBox').innerHTML = response;
},
onFailure: function(){ alert('Something went wrong...') }
});
}
function getAjaxrightCountry()
{
//loadProgressajaxCountry();
new Ajax.Request('http://www.worldwidegroup.eu/rental/ajaxSearchBoxright.php',
{
method:'post',
parameters: '',
onSuccess: function(transport){
var response = transport.responseText || "Sorry please refresh...";
$('ajaxCountryBoxs').innerHTML = "";
$('ajaxCountryBoxs').innerHTML = response;
},
onFailure: function(){ alert('Something went wrong...') }
});
}