<!--

//Used in view.php to enlarge the property thumbnails

function enlarge(pic) {
	var url = '<img src="'+ pic +'" />';
	document.getElementById('property_picture_view').innerHTML = url;
}

//Used on search form to remember selections

function setCookie(name,value,days) {
	if (days) {
	var date = new Date();
	date.setTime(date.getTime()+(days*24*60*60*1000));
	var expires = "; expires="+date.toGMTString(); 
	}
	
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

//Used to check contact form

function checkform()
{

	if ( document.contact.name.value == '' )
	{
		alert('You must enter your name before submitting the form')
		return false;
	}

	if ( document.contact.email.value == '' )
	{
		alert('You must enter your email address before submitting the form')
		return false;
	}

	if ( document.contact.message.value == '' )
	{
		alert('You must enter your message before submitting the form')
		return false;
	}

}

// -->

