<!--

   browserName = navigator.appName;

   browserVer = parseInt(navigator.appVersion);

   if ( (browserName == "Netscape" && browserVer >= 3) ||

   (browserName == "Microsoft Internet Explorer" && browserVer >= 4)) compat = "true";

   else compat = "false";





   function back() {

   	if (compat == "true") {

   	history.go(-1)

   	}

   }



var win=null;

function NewWindow(mypage,myname,w,h,scroll,pos){

if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}

if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}

else if((pos!="center" && pos!="random") || pos==null){LeftPosition=10;TopPosition=20}

settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';

win=window.open(mypage,myname,settings);}



	function check_contact_form()

				{

				if (!document.form_contact.name.value)

					{

					alert('Please enter your Name.');

					document.form_contact.name.focus();

					return false;

					}		

				if (!document.form_contact.phone.value)

					{

					alert('Please enter your telephone Number.');

					document.form_contact.phone.focus();

					return false;

					}

				if (!document.form_contact.email.value)

					{

					alert('Please enter your email.');

					document.form_contact.email.focus();

					return false;

					}

	if (!document.form_contact.message.value)

					{

					alert('Please enter your message.');

					document.form_contact.message.focus();

					return false;

					}

				}

function check_subscribe_form()
		{
		if (!document.form_subscribe.email.value)
			{
			alert('Please enter a valid email address.');
			document.form_subscribe.email.focus();
			return false;
			}
	if (!document.form_subscribe.first_name.value)
			{
			alert('Please enter your first name.');
			document.form_subscribe.first_name.focus();
			return false;
			}
		}



function display_todays_date()

{

	if (compat == "true") {

	var today = new Date();

	var numerical_day=today.getDay();

	var numerical_month=today.getMonth();

	var date=today.getDate();

	var year=today.getFullYear();



	var weekday_array = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

	var day_of_the_week = weekday_array[numerical_day];



	var month_array = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

	var month_name = month_array[numerical_month];



	var date_string=day_of_the_week+', '+date+' '+month_name+' '+year;

	document.write(date_string);

	}

}

// -->

<!--

//  Hide script from older browsers

 var urlAddress = "http://www.dubailandhomes.co.uk";

 var pageName = "Dubai Land Homes";



 function addToFavorites()

 {

  if (window.external)

  {

   window.external.AddFavorite(urlAddress,pageName)

  }

  else

  { 

   alert("Sorry! Your browser doesn't support this function.");

  }

 }

// -->