var homeOn = new Image();
var homeOff = new Image();
var buyOn = new Image();
var buyOff = new Image();
var sellOn = new Image();
var sellOff = new Image();
var letOn = new Image();
var letOff = new Image();
var landlordsOn = new Image();
var landlordsOff = new Image();
var aboutOn = new Image();
var aboutOff = new Image();
var contactOn = new Image();
var contactOff = new Image();

var about_aboutOn = new Image();
var about_aboutOff = new Image();
var missionOn = new Image();
var missionOff = new Image();

var searchOn = new Image();
var searchOff = new Image();
var buy_guideOn = new Image();
var buy_guideOff = new Image();
var mortgagesOn = new Image();
var mortgagesOff = new Image();
var conveyancingOn = new Image();
var conveyancingOff = new Image();
var jargonOn = new Image();
var jargonOff = new Image();
var whyOn = new Image();
var whyOff = new Image();
var registerOn = new Image();
var registerOff = new Image();
var sell_guideOn = new Image();
var sell_guideOff = new Image();
var let_guideOn = new Image();
var let_guideOff = new Image();
var insuranceOn = new Image();
var insuranceOff = new Image();
var landlords_guideOn = new Image();
var landlords_guideOff = new Image();
var contact_contactOn = new Image();
var contact_contactOff = new Image();
var jobOn = new Image();
var jobOff = new Image();
var franchiseOn = new Image();
var franchiseOff = new Image();
var newsOn = new Image();
var newsOff = new Image();
var franchiseContactOn = new Image();
var franchiseContactOff = new Image();
var pressOn = new Image();
var pressOff = new Image();

var mailing_listOn = new Image();
var mailing_listOff = new Image();
var latest_salesOn = new Image();
var latest_salesOff = new Image();
var free_appraisalOn = new Image();
var free_appraisalOff = new Image();
var faqsOn = new Image();
var faqsOff = new Image();
var simple_englishOn = new Image();
var simple_englishOff = new Image();

var fee1On = new Image();
var fee1Off = new Image();
var fee2On = new Image();
var fee2Off = new Image();
var fee3On = new Image();
var fee3Off = new Image();

var aOn = new Image();
var aOff = new Image();
var bOn = new Image();
var bOff = new Image();
var cOn = new Image();
var cOff = new Image();
var dOn = new Image();
var dOff = new Image();
var eOn = new Image();
var eOff = new Image();
var fOn = new Image();
var fOff = new Image();
var gOn = new Image();
var gOff = new Image();
var hOn = new Image();
var hOff = new Image();
var iOn = new Image();
var iOff = new Image();
var jOn = new Image();
var jOff = new Image();
var kOn = new Image();
var kOff = new Image();
var lOn = new Image();
var lOff = new Image();
var mOn = new Image();
var mOff = new Image();
var nOn = new Image();
var nOff = new Image();
var oOn = new Image();
var oOff = new Image();
var pOn = new Image();
var pOff = new Image();
var qOn = new Image();
var qOff = new Image();
var rOn = new Image();
var rOff = new Image();
var sOn = new Image();
var sOff = new Image();
var tOn = new Image();
var tOff = new Image();
var uOn = new Image();
var uOff = new Image();
var vOn = new Image();
var vOff = new Image();
var wOn = new Image();
var wOff = new Image();
var xOn = new Image();
var xOff = new Image();
var yOn = new Image();
var yOff = new Image();
var zOn = new Image();
var zOff = new Image();

var function_picsOn = new Image();
var function_picsOff = new Image();
var function_planOn = new Image();
var function_planOff = new Image();
var function_360On = new Image();
var function_360Off = new Image();
var function_3dOn = new Image();
var function_3dOff = new Image();
var function_mapOn = new Image();
var function_mapOff = new Image();
var function_localOn = new Image();
var function_localOff = new Image();
var function_viewOn = new Image();
var function_viewOff = new Image();
var function_printOn = new Image();
var function_printOff = new Image();
var function_mortgagesOn = new Image();
var function_mortgagesOff = new Image();
var function_conveyancingOn = new Image();
var function_conveyancingOff = new Image();
var function_hipsOn = new Image();
var function_hipsOff = new Image();
var function_3dfloorOn = new Image();
var function_3dfloorOff = new Image();
var function_epcsOn = new Image();
var function_epcsOff = new Image();

//Added by Fiqri - 13-10-2008 - START

var opextrasOff = new Image();
var opextrasOn = new Image();
var rmchoiceOff = new Image();
var rmchoiceOn = new Image();
var loginOn = new Image();
var loginOff = new Image();

//Added by Fiqri - 13-10-2008 - END

function SwapIMG(imageName, image, imagePath)
{
	if (image.src == '')
	{
		image.src = imagePath;
	}
	document.images[imageName].src = image.src;
}

function swaptick(pTickbox)
{
	if (pTickbox.name == 'Postcode')
	{
		document.forms['AdvSearch'].Street.checked = false;
		document.forms['AdvSearch'].County.checked = false;
	}
	else if (pTickbox.name == 'Street')
	{
		document.forms['AdvSearch'].Postcode.checked = false;
		document.forms['AdvSearch'].County.checked = false;
	}
	else if (pTickbox.name == 'County')
	{
		document.forms['AdvSearch'].Postcode.checked = false;
		document.forms['AdvSearch'].Street.checked = false;
	}
}

function NumberOfChar(str,char)
{
	var ii, charCount;
	charCount = 0;
	for (ii=0; ii < str.length;ii++)
	{
		var cc = str.charAt(ii);
		if (cc == char)
		{
			charCount = charCount + 1;
		}
	}
	return charCount;
}

function validEmail(str)
{
	/*var bool;
	bool = true;
	if (str.length < 6)
	{
		bool = false;
		alert("Email address has too few characters.");
	}
	if ((bool) && ((NumberOfChar(str,'@')==0)||(NumberOfChar(str,'@')>1)))
	{
		bool = false;
		alert("Email address contains the wrong number of @'s.");
	}
	if ((bool) && (NumberOfChar(str,'.')==0))
	{
		bool = false;
		alert("Email address must contain at least one '.'.");
	}
	if ((bool) && (NumberOfChar(str,' ')!=0))
	{
		bool = false;
		alert("Email address must not contain any spaces.");
	}
	return bool;*/

	var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(str)) {
		alert('Please provide a valid email address');
		return false;
	}
	else
		return true;
}

function validateLatestNewsForm(pForm)
{
	var bValid = true;

	if (document.latestnewsform.Article.value == '')
	{
		alert('You cannot enter an empty news article.');
		bValid = false;
	}
	else
	{
		if (document.latestnewsform.Article.value.length > 76)
		{
			alert('You cannot enter more than 76 Characters per Article.');
			bValid = false;
		}
	}

	return bValid;
}

function validateTopTenForm(pForm)
{
	var bValid = true;

	if (pForm.Name.value == '')
	{
		alert('You must enter a name to register for our Top Ten Tips.');
		bValid = false;
	}

	if ((bValid) && (pForm.Email.value == ''))
	{
		alert('You must enter a valid email address to register for our Top Ten Tips.');
		bValid = false;
	}
	else if (bValid)
	{
		bValid = validEmail(pForm.Email.value);
	}

	return bValid;
}

function validatePaymentForm(pForm)
{
	var bValid = true;

	if (pForm.Fullname.value == '')
	{
		alert('You must enter your full name to proceed with the payment.');
		bValid = false;
	}

	if ((bValid) && (pForm.Email.value == ''))
	{
		alert('You must enter a valid email address to proceed with the payment.');
		bValid = false;
	}
	else if (bValid)
	{
		bValid = validEmail(pForm.Email.value);
	}

	return bValid;
}

function validateSearch(pForm)
{
	var bValid = true;

	if (pForm.Keywords.value != '')
	{
		if ((pForm.Postcode.checked == false) && (pForm.Street.checked == false) && (pForm.Area.checked == false))
		{
			alert('You must select an option for your keyword search');
			bValid = false;
		}
	}

	return bValid;
}

//This function validates input from advanced search
function validateAdvancedSearch()
{
	var adv_keywords = trim(document.getElementById('advSearchKeywords').value);
	var adv_pcode = document.getElementById('advSearchPC');
	var adv_street = document.getElementById('advSearchStreet');
	var adv_area = document.getElementById('advSearchArea');

	if (adv_keywords != '')
	{
		if ((adv_pcode.checked == false) && (adv_street.checked == false) && (adv_area.checked == false))
		{
			alert('You must select an option for your keyword search');
			return false;
		}
	}

	return true;
}


function trim(str)
{
	return str.replace(/^\s+|\s+$/g,"");
}

function validateContactForm(pForm)
{
	var bValid = true;

	if (pForm.Name.value == '')
	{
		alert('You must enter a name to submit a query.');
		bValid = false;
	}
	if ((bValid) && (pForm.Email.value == ''))
	{
		alert('You must enter a valid email address to submit a query.');
		bValid = false;
	}
	else if (bValid)
	{
		bValid = validEmail(pForm.Email.value);
	}
	if ((bValid) && (pForm.Query.value == ''))
	{
		alert('You must enter a query.');
		bValid = false;
	}

	return bValid;
}

function validateFreeAppraisalForm(pForm)
{
	var bValid = true;

	if (pForm.Title.value == '')
	{
		alert('You must enter a Title.');
		bValid = false;
	}

	if ((bValid) && (pForm.Firstname.value == ''))
	{
		alert('You must enter a First name.');
		bValid = false;
	}
	if ((bValid) && (pForm.Surname.value == ''))
	{
		alert('You must enter a Surname.');
		bValid = false;
	}
	if ((bValid) && (pForm.Address1.value == ''))
	{
		alert('You must enter an Address.');
		bValid = false;
	}
	if ((bValid) && (pForm.Postcode.value == ''))
	{
		alert('You must enter a Postcode.');
		bValid = false;
	}
	if ((bValid) && (pForm.Mobilephone.value == '') && (pForm.Homephone.value == '') && (pForm.Worknumber.value == ''))
	{
		alert('You must enter a Phone Number.');
		bValid = false;
	}
	if ((bValid) && (pForm.Email.value == ''))
	{
		alert('You must enter a valid email address.');
		bValid = false;
	}
	else if (bValid)
	{
		bValid = validEmail(pForm.Email.value);
	}

	return bValid;
}

function validateUserForm(pForm)
{
	var bValid;
	bValid = true;

	if (pForm.FirstName.value == '')
	{
		alert('You must enter a First Name.');
		bValid = false;
	}
	if ((bValid) && (pForm.Surname.value == ''))
	{
		alert('You must enter a Surname.');
		bValid = false;
	}
	if ((bValid) && (pForm.Address1.value == ''))
	{
		alert('You must enter Address 1.');
		bValid = false;
	}
	if ((bValid) && (pForm.Postcode.value == ''))
	{
		alert('You must enter a Postcode.');
		bValid = false;
	}
	if ((bValid) && (pForm.Email.value == ''))
	{
		alert('You must enter an Email.');
		bValid = false;
	}
	if ((bValid) && (pForm.Phone1.value == ''))
	{
		alert('You must enter Phone 1.');
		bValid = false;
	}
	if ((bValid) && (pForm.Username.value == ''))
	{
		alert('You must enter a Username.');
		bValid = false;
	}
	if ((bValid) && (pForm.Password.value == ''))
	{
		alert('You must enter a Password.');
		bValid = false;
	}

	return bValid;
}

function validatePropertyForm(pForm)
{
	var bValid;
	bValid = true;

	if (pForm.Category.value == '')
	{
		alert('You must choose a category.');
		bValid = false;
	}
	if ((bValid) && (pForm.Type_House.value == ''))
	{
		alert('You must choose a type.');
		bValid = false;
	}
	if ((bValid) && (pForm.Address1.value == ''))
	{
		alert('You must enter Address 1.');
		bValid = false;
	}
	if ((bValid) && (pForm.Postcode.value == ''))
	{
		alert('You must enter a Postcode.');
		bValid = false;
	}
	if ((bValid) && (pForm.Area.value == ''))
	{
		alert('You must choose an area.');
		bValid = false;
	}
	if ((bValid) && (pForm.NoOfBedrooms.value == ''))
	{
		alert('You must enter the no of bedrooms.');
		bValid = false;
	}
	if ((bValid) && (pForm.Price.value == ''))
	{
		alert('You must enter a price.');
		bValid = false;
	}
	if ((bValid) && (pForm.Description.value == ''))
	{
		alert('You must enter a description.');
		bValid = false;
	}

	return bValid;
}

function validateViewingForm(pForm)
{
	var bValid = true;

	if (pForm.Title.value == '')
	{
		alert('You must enter a Title.');
		bValid = false;
	}

	if ((bValid) && (pForm.Firstname.value == ''))
	{
		alert('You must enter a First name.');
		bValid = false;
	}

	if ((bValid) && (pForm.Surname.value == ''))
	{
		alert('You must enter a Surname.');
		bValid = false;
	}

	if ((bValid) && (pForm.Address1.value == ''))
	{
		alert('You must enter an Address.');
		bValid = false;
	}

	if ((bValid) && (pForm.Postcode.value == ''))
	{
		alert('You must enter a Postcode.');
		bValid = false;
	}

	if ((bValid) && (pForm.Mobilephone.value == '') && (pForm.Homephone.value == '') && (pForm.Worknumber.value == ''))
	{
		alert('You must enter a Phone Number.');
		bValid = false;
	}

	if ((bValid) && (pForm.Email.value == ''))
	{
		alert('You must enter a valid email address.');
		bValid = false;
	}

	else if (bValid)
	{
		bValid = validEmail(pForm.Email.value);
	}

	if ((bValid) && (pForm.Position.value == ''))
	{
		alert('You must enter a Buying Position.');
		bValid = false;
	}

	if ((bValid) && (((pForm.ViewingDate1.value == '') && (pForm.ViewingTime1.value == '')) && ((pForm.ViewingDate2.value == '') && (pForm.ViewingTime2.value == '')) && ((pForm.ViewingDate3.value == '') && (pForm.ViewingTime3.value == ''))))
	{
		alert('You must enter at least one suggested viewing Time and Date.');
		bValid = false;
	}
	else
	{
		if ((pForm.ViewingDate1.value != '') && (pForm.ViewingTime1.value == ''))
		{
			alert('You must enter the Time and Date!.');
			bValid = false;
		}
		if ((pForm.ViewingDate2.value != '') && (pForm.ViewingTime2.value == ''))
		{
			alert('You must enter the Time and Date!.');
			bValid = false;
		}
		if ((pForm.ViewingDate3.value != '') && (pForm.ViewingTime3.value == ''))
		{
			alert('You must enter the Time and Date!.');
			bValid = false;
		}
	}

	return bValid;
}

function validateMailingListForm(pForm)
{
	var bValid = true;

	if (pForm.Title.value == '')
	{
		alert('You must enter a Title.');
		bValid = false;
	}

	if ((bValid) && (pForm.Firstname.value == ''))
	{
		alert('You must enter a First name.');
		bValid = false;
	}

	if ((bValid) && (pForm.Surname.value == ''))
	{
		alert('You must enter a Surname.');
		bValid = false;
	}

	if ((bValid) && (pForm.Address1.value == ''))
	{
		alert('You must enter an Address.');
		bValid = false;
	}

	if ((bValid) && (pForm.Postcode.value == ''))
	{
		alert('You must enter a Postcode.');
		bValid = false;
	}

	if ((bValid) && (pForm.Mobilephone.value == '') && (pForm.Homephone.value == '') && (pForm.Worknumber.value == ''))
	{
		alert('You must enter a Phone Number.');
		bValid = false;
	}

	if ((bValid) && (pForm.Email.value == ''))
	{
		alert('You must enter a valid email address.');
		bValid = false;
	}

	else if (bValid)
	{
		bValid = validEmail(pForm.Email.value);
	}

	return bValid;
}

function validateRegisterForm(pForm)
{
	var bValid = true;

	if (pForm.Title.value == '')
	{
		alert('You must enter a Title.');
		bValid = false;
	}

	if ((bValid) && (pForm.Firstname.value == ''))
	{
		alert('You must enter a First name.');
		bValid = false;
	}

	if ((bValid) && (pForm.Surname.value == ''))
	{
		alert('You must enter a Surname.');
		bValid = false;
	}

	if ((bValid) && (pForm.Address1.value == ''))
	{
		alert('You must enter an Address.');
		bValid = false;
	}

	if ((bValid) && (pForm.Postcode.value == ''))
	{
		alert('You must enter a Postcode.');
		bValid = false;
	}

	if ((bValid) && (pForm.Mobilephone.value == '') && (pForm.Homephone.value == '') && (pForm.Worknumber.value == ''))
	{
		alert('You must enter a Phone Number.');
		bValid = false;
	}


	if (pForm.confirmbtn.checked)
	{

	}else if(bValid){
	alert('To proceed, first read and agree for the terms and conditions.');
	bValid = false;
	}

	if ((bValid) && (pForm.Email.value == ''))
	{
		alert('You must enter a valid email address.');
		bValid = false;
	}

	else if (bValid)
	{
		bValid = validEmail(pForm.Email.value);
	}


	return bValid;
}

/******************** TypeWriter Text ********************/
var iDelay			= 50;
var iCurrentChar	= 1;
var iCurrentStory	= 0;
var bFlickOn		= false;
var iStoryCount		= 0;
var arrNews			= new Array();

function OutputNews()
{
	iStoryCount	= arrNews.length;
	TypeNews();
}

function TypeNews()
{
	if (document.getElementById)
	{
		var oDiv = document.getElementById('news-content');
		var sText = arrNews[iCurrentStory];

		//Makes the cursor '_' flicker
		if (bFlickOn)
		{
			if (sText.substr(iCurrentChar-1, 5) == "&amp;")
			{
				oDiv.innerHTML = sText.substr(0, iCurrentChar-1) + '&amp;_';
				iCurrentChar = iCurrentChar + 4;
			}
			else if (sText.substr(iCurrentChar-1, 7) == "&acute;")
			{
				oDiv.innerHTML = sText.substr(0, iCurrentChar-1) + '&acute;_';
				iCurrentChar = iCurrentChar + 6;
			}
			else if (sText.substr(iCurrentChar-1, 7) == "&pound;")
			{
				oDiv.innerHTML = sText.substr(0, iCurrentChar-1) + '&pound;_';
				iCurrentChar = iCurrentChar + 6;
			}
			else
			{
				oDiv.innerHTML = sText.substr(0, iCurrentChar) + '_';
			}

			bFlickOn 		= false;
			iCurrentChar++;

		}
		else
		{
			oDiv.innerHTML = oDiv.innerHTML.substr(0, oDiv.innerHTML.length - 1);
			bFlickOn 		= true;
		}

		// if we come to the end of the text
		if (iCurrentChar > sText.length)
		{
			iDelay = 1000;
			//remove the final '_' character
			oDiv.innerHTML = sText.substr(0, sText.length);
			iCurrentChar 	= 1;
			iCurrentStory++;

			if (iCurrentStory > (iStoryCount - 1))
			{
				iCurrentStory = 0;
			}
		}
		else
		{
			iDelay = 50;
		}

		setTimeout("TypeNews()", iDelay);
	}
}

function ShowContent(pItemName)
{
	var oDiv = document.getElementById('guide-content');
	var sContent;

	switch (pItemName)
	{
		case 'Guide_Looking':
			sContent = '<p class="f15 fBold fBlack">Looking for a Property</p><div class="heightDiv10"><!-- --></div>The first thing, as a buyer, is to decide on your search criteria for a property. There are many things to consider when purchasing a new property; the location, the style of the property (Older, newer, bungalow, flat or house) the number of bedrooms, reception rooms and bathrooms, the garaging and parking, the garden and, of course, the price you&acute;re prepared to pay.<div class="heightDiv17"><!-- --></div>After looking at a few properties you may be lucky enough to find you&acute;re dream property, but if you don&acute;t, don&acute;t be disappointed. Most buyers change their requirements after looking at a number of properties and settle on something that is close, but not quite what they had in mind in the first place.<div class="heightDiv17"><!-- --></div>At this stage, we would also advise looking into how much you can borrow on a mortgage before going to visit any properties.';
			break;

		case 'Guide_Registering':
			sContent = '<p class="f15 fBold fBlack">Registering with hatched.co.uk</p><div class="heightDiv10"><!-- --></div>To register, all you have to do is fill in our online form and we will keep you updated as and when new properties come on to the market that fit your requirements. If your requirements change, or you find a property, then call us and we will remove you from the weekly mailing list.';
			break;

		case 'Guide_Viewing':
			sContent = '<p class="f15 fBold fBlack">Viewing</p><div class="heightDiv10"><!-- --></div>Many of the features on each of our properties allow you a &acute;virtual viewing&acute;. This technology is as close as you will get to viewing the property without leaving your seat! But, there is still nothing quite like actually going to view the property. You get a real &acute;feeling&acute; for the property and a real idea of the location and its situation. When you see a property that you would like to go and visit, just give us a call, or contact us using the online form and we will be happy to arrange a viewing for a suitable time to both yourself and the vendor. Once the viewing has taken place we will contact you so we can gather feedback on the property.';
			break;

		case 'Guide_Offering':
			sContent = '<p class="f15 fBold fBlack">Offering</p><div class="heightDiv10"><!-- --></div>If you like the property that you have viewed and you can see yourself living there; make an offer! Just give us a call with information on your mortgage (we can help with this), your own chain details and the amount you would like to offer and we&acute;ll do the rest.';
			break;

		case 'Guide_Instructing':
			sContent = '<p class="f15 fBold fBlack">Instructing Solicitors</p><div class="heightDiv10"><!-- --></div>Once you have made an offer that the vendor is willing to accept, you need to appoint a solicitor to act on your behalf. This is called conveyancing. They will advise you on everything to do with the sale; things like your local authority searches, drawing up the contract and any other issues that you may not be familiar with. We are able recommend an online solicitor that offers extremely competitive rates compared to High Street solicitors.';
			break;

		case 'Guide_Arranging':
			sContent = '<p class="f15 fBold fBlack">Arranging a Mortgage</p><div class="heightDiv10"><!-- --></div>This is done along side the conveyancing. We would advise the best process is to go to an independent mortgage broker. They will be able to choose from hundreds, maybe thousands of different mortgage deals on the market and will generally do most of the leg work for you.';
			break;

		case 'Guide_Draft':
			sContent = '<p class="f15 fBold fBlack">Draft Contract</p><div class="heightDiv10"><!-- --></div>When you have appointed your chosen solicitor, they will start work for you immediately. A draft contract is drawn up by the sellers&acute; solicitor and sent to your solicitor, who will then raise some initial enquiries and proceed with a Land Registry Search.';
			break;

		case 'Guide_Local':
			sContent = '<p class="f15 fBold fBlack">Local Authority Search</p><div class="heightDiv10"><!-- --></div>This is done by your solicitor and is obtained from the Local Borough Council. This gives you and your solicitor information on any planning consents given and any local issues amongst other things.';
			break;

		case 'Guide_Survey':
			sContent = '<p class="f15 fBold fBlack">Survey</p><div class="heightDiv10"><!-- --></div>If you are getting a mortgage, the bank will ask a surveyor to go and inspect the property. The surveyor will advise the bank if there any structural problems and also offer advice on the value of the property. If you are purchasing the property with cash funds, then you can instruct a surveyor to act on your behalf to go and inspect the property.';
			break;

		case 'Guide_Contract':
			sContent = '<p class="f15 fBold fBlack">Contract Approval</p><div class="heightDiv10"><!-- --></div>Once the local search results are back, initial enquiries are received and your solicitor has dealt with any further outstanding issues, he/she will approve the draft contract.';
			break;

		case 'Guide_Formal':
			sContent = '<p class="f15 fBold fBlack">Formal Mortgage Offer</p><div class="heightDiv10"><!-- --></div>Once the surveyor has submitted his findings, the bank will send out a mortgage offer to your solicitor. A copy will normally be sent you also. Once you sign this paperwork and send it back, you are nearly ready to exchange contracts.';
			break;

		case 'Guide_Exchange':
			sContent = '<p class="f15 fBold fBlack">Exchange of Contracts</p><div class="heightDiv10"><!-- --></div>This is signed by both the seller and you with a completion date set. A deposit is usually paid at this point; anything from 5% of the purchase price upwards.';
			break;

		case 'Guide_Completion':
			sContent = '<p class="f15 fBold fBlack">Completion</p><div class="heightDiv10"><!-- --></div>This can take place as early as the same day, but is normally between 1 and 4 weeks after you exchange contracts. The balance is drawn down to your solicitor, who will transfer the money to the sellers&acute; solicitor. Once this has gone through you will be allowed to collect the keys and move into your new home! Congratulations, you have just bought a property through Hatched.co.uk!';
			break;

		case 'Sell_Guide_Putting':
			sContent = '<p class="f15 fBold fBlack">Putting the property on the market</p><div class="heightDiv10"><!-- --></div>To put your property on the market with Hatched.co.uk, just give us a call or use our online booking form and a representative will be able to visit to take photographs, floor plans, virtual tours, details etc. You will have to sign a contract outlining the terms and conditions of the instruction. Once you have confirmed instructions, it is advisable to contact your solicitor to let them know your intentions.';
			break;

		case 'Sell_Guide_How':
			sContent = '<p class="f15 fBold fBlack">How long will it take?</p><div class="heightDiv10"><!-- --></div>It will take approximately 2 hours to complete the appointment. The property will be available on our live web site and on the market immediately.';
			break;

		case 'Sell_Guide_Viewing':
			sContent = '<p class="f15 fBold fBlack">Viewings &amp; Feedback</p><div class="heightDiv10"><!-- --></div>Once the property is available for sale, we will use our mailing list and web site coverage to arrange viewings for serious buyers. Because buyers can have a &acute;virtual viewing&acute; of the property before they make a &acute;real&acute; appointment, it means that anyone coming to see the property is genuinely interested. It will be like a second viewing every time someone comes round! Every viewing will be followed up and feedback will be obtained.';
			break;

		case 'Sell_Guide_Mini':
			sContent = '<p class="f15 fBold fBlack">Mini Web Site</p><div class="heightDiv10"><!-- --></div>You will have a login and a password to a special part of Hatched.co.uk, so that you will be able to check the feedback on viewings. It will also show you ho many people have taken a &acute;virtual view&acute; of your property.';
			break;

		case 'Sell_Guide_Offers':
			sContent = '<p class="f15 fBold fBlack">Offers</p><div class="heightDiv10"><!-- --></div>Once we receive an offer from a potential buyer, we will report this to you immediately both verbally and in writing. We will negotiate on your behalf until the potential buyer reaches a price that is acceptable to you.';
			break;

		case 'Sell_Guide_Accepting':
			sContent = '<p class="f15 fBold fBlack">Accepting an offer</p><div class="heightDiv10"><!-- --></div>Once the figure has reached an acceptable level, we will accept the offer on your behalf. It is now time to instruct your solicitor, if you haven&acute;t already done so. We can help with this if that is required.';
			break;

		case 'Sell_Guide_Draft':
			sContent = '<p class="f15 fBold fBlack">Draft Contract</p><div class="heightDiv10"><!-- --></div>When you have appointed your chosen solicitor, they will start work for you immediately. A draft contract is drawn and sent to the purchaser&acute;s solicitor, who then raises initial enquiries and proceeds with a Land Registry Search. Your solicitor will organise all the supporting paperwork, including things like title deeds, guarantees, planning consent/building regulations, etc.';
			break;

		case 'Sell_Guide_Contract':
			sContent = '<p class="f15 fBold fBlack">Contract Approval</p><div class="heightDiv10"><!-- --></div>Once the local search results are back, initial enquiries are received and your solicitor has dealt with any further outstanding issues, he/she will approve the draft contract.';
			break;

		case 'Sell_Guide_Exchange':
			sContent = '<p class="f15 fBold fBlack">Exchange of Contracts</p><div class="heightDiv10"><!-- --></div>Once the buyer has received the mortgage offer (If one is required), then contracts are ready to be signed and exchanged. The contract includes all the finer detail. This is signed by both yourself and the purchaser with a completion date set. A deposit is usually paid at this point by the purchaser and held by the solicitor – anything from 5% of the purchase price upwards.';
			break;

		case 'Sell_Guide_Completion':
			sContent = '<p class="f15 fBold fBlack">Completion</p><div class="heightDiv10"><!-- --></div>This can take place as early as the same day, but is normally between 1 and 4 weeks after you exchange contracts. The balance is drawn down to the purchaser&acute;s solicitor, who will transfer the money to your solicitor. Only when this has arrived with your solicitor, will we release the key to the new purchaser. You have now sold your home through Hatched.co.uk! Congratulations!';
			break;

		case 'Let_Guide_Looking':
			sContent = '<p class="f15 fBold fBlack">Looking for a property?</p><div class="heightDiv10"><!-- --></div>The first thing, as a prospective tenant, is to decide on your search criteria for a property. Things like, how much you&acute;re prepared to pay, the location and the amount of bedrooms.<br /><br />Of course letting is not like buying - you are only committed to a minimum of 6 months with our assured shorthold tenancy agreements. It is normally a much quicker process when searching for a property and the strict criteria when you purchase a property isn&acute;t as prominent as when you are looking to rent.';
			break;

		case 'Let_Guide_Register':
			sContent = '<p class="f15 fBold fBlack">Registering with hatched.co.uk</p><div class="heightDiv10"><!-- --></div>To register, all you have to do is fill in our online form and we will keep you updated as and when new properties come available that fit your requirements. If your requirements change, or you find a property, then call us and we will remove you from the weekly mailing list.';
			break;

		case 'Let_Guide_Viewing':
			sContent = '<p class="f15 fBold fBlack">Viewing</p><div class="heightDiv10"><!-- --></div>You will see many features on each of our properties that allow you to have a &acute;virtual viewing&acute;. This technology is out on its own with the regard to presentation of clients&acute; properties, but there is still nothing quite like actually going to view the property. You get a real &acute;feeling&acute; for the property and a real idea of the location and its situation. <br /><br />When you see a property that you would like to go and visit, just give us a call, or contact us using the online form and we will be happy to arrange a viewing for a suitable time to both yourself and the landlord. Once the viewing has taken place we will contact you so we can gather feedback on the property.';
			break;

		case 'Let_Guide_Interested':
			sContent = '<p class="f15 fBold fBlack">Interested?</p><div class="heightDiv10"><!-- --></div>If you like the property that you have viewed and you can see yourself living there, then don&acute;t delay! Contact us straight away and let us know. We work on a first come, first served basis when tenants are interested in properties, so you must be quick to avoid missing out. We will ask for a reservation fee of &pound;125 for a one person tenancy per property, which rises by &pound;50 for every extra person over the age of 18 years. We will require you to fill out a questionnaire as to your current employment, salary, details of referees, etc.';
			break;

		case 'Let_Guide_Application':
			sContent = '<p class="f15 fBold fBlack">The application</p><div class="heightDiv10"><!-- --></div>When we have received the completed application forms, we will process those and ask for references from various sources, subject to the landlords instructions, we will invite you to sign the tenancy agreement.';
			break;

		case 'Let_Guide_Insurance':
			sContent = '<p class="f15 fBold fBlack">Insurance</p><div class="heightDiv10"><!-- --></div>It is advisable that tenants obtain contents insurance for the property they are going to be renting. The team at Hatched.co.uk can help you getting quotes for this if required.';
			break;

		case 'Let_Guide_Tenancy':
			sContent = '<p class="f15 fBold fBlack">Tenancy Agreement</p><div class="heightDiv10"><!-- --></div>Subject to the landlord allowing us to go ahead, we will draw up all the necessary paperwork including tenancy agreements and standing orders for both parties to sign. Once the paperwork has been signed, we will require an advance payment of rent from the tenant. A deposit will also be required from the tenant, which will be reimbursed at the end of the tenancy, subject to the inventory check-out report and any other agreements in place.';
			break;

		case 'Let_Guide_Inventory':
			sContent = '<p class="f15 fBold fBlack">Inventory</p><div class="heightDiv10"><!-- --></div>An independent inventory clerk will meet you at the property and provide details on the condition and contents of the property before you move in. Both the tenant and the landlord will receive copies of this.';
			break;

		case 'Let_Guide_Completion':
			sContent = '<p class="f15 fBold fBlack">Completion</p><div class="heightDiv10"><!-- --></div>Once the inventory check has been done, the lease has been signed and rent &amp; deposits have been collected, the keys will be handed over to you to move in! Congratulations, you have just rented a property through Hatched.co.uk!';
			break;

		case 'Landlords_Guide_Putting':
			sContent = '<p class="f15 fBold fBlack">Putting the property on the market</p><div class="heightDiv10"><!-- --></div>To put your property on the market with Hatched.co.uk, just give us a call or use our online booking form and a representative will be able to visit to take photographs, floor plans, virtual tours, details etc. You will have to sign a contract outlining the terms &amp; conditions of the instruction.';
			break;

		case 'Landlords_Guide_How':
			sContent = '<p class="f15 fBold fBlack">How long will it take?</p><div class="heightDiv10"><!-- --></div>It will take approximately 2 hours to complete the appointment. The property will be available on our live web site and on the market available to let immediately.';
			break;

		case 'Landlords_Guide_Viewing':
			sContent = '<p class="f15 fBold fBlack">Viewings &amp; Feedback</p><div class="heightDiv10"><!-- --></div>Once the property is available to let, we will use our mailing list and web site coverage to arrange viewing for serious tenants. Because tenants can have a &acute;virtual viewing&acute; of the property before they make a &acute;real&acute; appointment, it means that anyone coming to see the property is genuinely interested. It will be like a second viewing every time someone comes round! Every viewing will be followed up and feedback will be obtained.';
			break;

		case 'Landlords_Guide_Mini':
			sContent = '<p class="f15 fBold fBlack">Mini Web Site</p><div class="heightDiv10"><!-- --></div>You will have a login and a password to a special part of Hatched.co.uk, so that you will be able to check the feedback on viewings. It will also show you ho many people have taken a &acute;virtual view&acute; of your property.';
			break;

		case 'Landlords_Guide_Legals':
			sContent = '<p class="f15 fBold fBlack">The legals</p><div class="heightDiv10"><!-- --></div>There are a number of laws to be considered when renting a property out; gas safety, electrical safety, fire &amp; furnishings &amp; tax. We can offer advice on any of these issues and have contractors to carry out safety inspections if required.';
			break;

		case 'Landlords_Guide_Tenant':
			sContent = '<p class="f15 fBold fBlack">A tenant is found</p><div class="heightDiv10"><!-- --></div>When a tenant expresses an interest in the property, they will be subjected to independent reference and credit checks which we will give feedback on.';
			break;

		case 'Landlords_Guide_Tenancy':
			sContent = '<p class="f15 fBold fBlack">Tenancy Agreement</p><div class="heightDiv10"><!-- --></div>If you are happy with the tenant(s) then we will draw up all the necessary paperwork including tenancy agreements and standing orders for both parties to sign. Once the paperwork has been signed, we ask for advance payment of rent from the tenant. A deposit will also be required from the tenant, which we hold and will reimburse at the end of the tenancy, subject to the inventory check-out report and any other agreements in place.';
			break;

		case 'Landlords_Guide_Inventory':
			sContent = '<p class="f15 fBold fBlack">Inventory</p><div class="heightDiv10"><!-- --></div>An independent inventory clerk provides details on the condition and contents of the property before the tenant moves in (And when they move out). Both the tenant and landlord receive copies of this.';
			break;

		case 'Landlords_Guide_Completion':
			sContent = '<p class="f15 fBold fBlack">Completion</p><div class="heightDiv10"><!-- --></div>Once the inventory check has been done, the lease has been signed and rent &amp; deposits have been collected, the keys will be handed over to the tenant to move in! Congratulations, you have just let your property through Hatched.co.uk.';
			break;

		/*--- Added by Fiqri - 13-10-2008 - START ---*/

		case 'OptionalExtras_Opt1':
			sContent = '<p class="f15 fBold fBlack">Lorem ipsum dolor sit amet 1</p><div class="heightDiv10"><!-- --></div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin ac risus. Maecenas leo nulla, vestibulum vel, dignissim eget, euismod at, arcu. Pellentesque venenatis nunc. Vestibulum sed elit eget libero vulputate commodo. Donec egestas arcu et est. Donec at lectus. Fusce sapien. Curabitur enim tortor, aliquet quis, suscipit et, sodales et, augue. Proin imperdiet. Mauris venenatis. Mauris iaculis, felis eu cursus imperdiet, mauris leo faucibus turpis, et malesuada leo nisi eget pede. Vestibulum vitae dui ac lectus ullamcorper dignissim.';
			break;

		case 'OptionalExtras_Opt2':
			sContent = '<p class="f15 fBold fBlack">Lorem ipsum dolor sit amet 2</p><div class="heightDiv10"><!-- --></div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin ac risus. Maecenas leo nulla, vestibulum vel, dignissim eget, euismod at, arcu. Pellentesque venenatis nunc. Vestibulum sed elit eget libero vulputate commodo. Donec egestas arcu et est. Donec at lectus.';
			break;

		case 'OptionalExtras_Opt3':
			sContent = '<p class="f15 fBold fBlack">Lorem ipsum dolor sit amet 3 </p><div class="heightDiv10"><!-- --></div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin ac risus. Maecenas leo nulla, vestibulum vel, dignissim eget, euismod at, arcu. Pellentesque venenatis nunc. Vestibulum sed elit eget libero vulputate commodo. Donec egestas arcu et est. Donec at lectus. Fusce sapien. Curabitur enim tortor, aliquet quis, suscipit et, sodales et, augue. Proin imperdiet. Mauris venenatis. Mauris iaculis, felis eu cursus imperdiet, mauris leo faucibus turpis, et malesuada leo nisi eget pede. Vestibulum vitae dui ac lectus ullamcorper dignissim.';
			break;

		case 'OptionalExtras_Opt4':
			sContent = '<p class="f15 fBold fBlack">Lorem ipsum dolor sit amet 4</p><div class="heightDiv10"><!-- --></div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin ac risus. Maecenas leo nulla, vestibulum vel, dignissim eget, euismod at, arcu. Pellentesque venenatis nunc. Vestibulum sed elit eget libero vulputate commodo. Donec egestas arcu et est. Donec at lectus.';
			break;

		case 'OptionalExtras_Opt5':
			sContent = '<p class="f15 fBold fBlack">Lorem ipsum dolor sit amet 5 </p><div class="heightDiv10"><!-- --></div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin ac risus. Maecenas leo nulla, vestibulum vel, dignissim eget, euismod at, arcu. Pellentesque venenatis nunc. Vestibulum sed elit eget libero vulputate commodo. Donec egestas arcu et est. Donec at lectus. Fusce sapien. Curabitur enim tortor, aliquet quis, suscipit et, sodales et, augue. Proin imperdiet. Mauris venenatis. Mauris iaculis, felis eu cursus imperdiet, mauris leo faucibus turpis, et malesuada leo nisi eget pede. Vestibulum vitae dui ac lectus ullamcorper dignissim.</p>';
			break;

		case 'OptionalExtras_Opt6':
			sContent = '<p class="f15 fBold fBlack">Lorem ipsum dolor sit amet 6</p><div class="heightDiv10"><!-- --></div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin ac risus. Maecenas leo nulla, vestibulum vel, dignissim eget, euismod at, arcu. Pellentesque venenatis nunc. Vestibulum sed elit eget libero vulputate commodo. Donec egestas arcu et est. Donec at lectus.';
			break;



		/*--- Added by Fiqri - 13-10-2008 - END ---*/

		default:
			sContent = '<p>ERROR - please contact the website administrator</p>';
	}

	oDiv.innerHTML = sContent;
}


function ShowJargonContent(pItemName)
{
	var oDiv = document.getElementById('jargon-content');
	var sContent;

	switch (pItemName)
	{
		case 'Jargon_a':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Agency sales fee</h2><div class="heightDiv5"><!-- --></div><p>A fixed amount or percentage of the value of your home paid to an estate agent upon completion.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Auction</h2><div class="heightDiv5"><!-- --></div><p>The sale of a property to the highest bidder.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Annual percentage rate</h2><div class="heightDiv5"><!-- --></div><p>(APR) the total cost of a loan, including all costs, interest charges and arrangement fees shown as a percentage rate and easily comparable with mortgage interest rates.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Agreement in principle</h2><div class="heightDiv5"><!-- --></div><p>Provided by a mortgage lender which shows any prospective seller that you can actually get a mortgage to cover the purchase price. </p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Architects certificate</h2><div class="heightDiv5"><!-- --></div><p>An alternative for a builder/developer when a NHBC guarantee is not available for a new home.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Appraisal</h2><div class="heightDiv5"><!-- --></div><p>An estimate of the value of a property as determined by an independent agent familiar with local property values. Most homeowners will normally arranged 2-3 market appraisal&acute;s of their home prior to intructing a selling agent.';
			break;

		case 'Jargon_b':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Bank of England base rate</h2><div class="heightDiv5"><!-- --></div><p>The prevailing rate of interest set by the Bank of England which all lenders generally follow.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Bankers draft</h2><div class="heightDiv5"><!-- --></div><p>Guaranteed by your bank, a bankers draft is seen as more secure than a personal cheque.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Bridging loan</h2><div class="heightDiv5"><!-- --></div><p>A temporary loan which allows a purchaser to complete on the purchase of a new property before selling the previous property.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Building survey (formerly full structural survey)</h2><div class="heightDiv5"><!-- --></div><p>Conducted by a chartered surveyor, a building survey is suitable for any house, particularly older properties and those which have been poorly maintained. Upon completion of the survey the surveyor will write up a detailed report.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Buy to let mortgage</h2><div class="heightDiv5"><!-- --></div><p>A type of mortgage specifically designed for people buying a property with the intention of letting it out. Buy to let mortgages normally require a higher deposit be put down.';
			break;

		case 'Jargon_c':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Capped mortgage</h2><div class="heightDiv5"><!-- --></div><p>Normally agreed for a fixed period of time, many lenders provide mortgages with an upper limit on the interest rate. Thus if the standard interest rate is lower than the upper limit you will be charged the lower rate, but if the standard variable rate is higher you will be charged at the agreed rate.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Catchment area</h2><div class="heightDiv5"><!-- --></div><p>An area surrounding a school (i.e. a postcode) in which you must live for your children to be eligible to attend.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">CCJ</h2><div class="heightDiv5"><!-- --></div><p>If someone fails to pay for something and is subsequently taken to court the magistrate may issue a County Court Judgement against that individual to pay the outstanding debt. The CCJ may then be brought up in future if applying for credit.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Completion</h2><div class="heightDiv5"><!-- --></div><p>The point at which all transactions concerning the property&acute;s sale are concluded and legal transfer of ownership passes to the buyer.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Contract</h2><div class="heightDiv5"><!-- --></div><p>A legal agreement between the seller and buyer of a property which binds both parties to complete the transaction.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Contract race</h2><div class="heightDiv5"><!-- --></div><p>If two parties have made an offer on the same house the vendor may decide to sell to the first party to exchange contracts.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Conveyancing</h2><div class="heightDiv5"><!-- --></div><p>Term for the legal work involved in the purchase and sale of a property.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Covenants</h2><div class="heightDiv5"><!-- --></div><p>Rules and regulations governing the property, contained in its title deeds or lease. Some properties may have a covenant placed on them by a previous owner, restricting future building works etc by any future owner.';
			break;

		case 'Jargon_d':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Damp proof course</h2><div class="heightDiv5"><!-- --></div><p>A layer of impervious material (such as mineral felt PVC etc.) incorporated into a wall to prevent dampness rising up the wall or lateral dampness around windows doors.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Deeds</h2><div class="heightDiv5"><!-- --></div><p>Legal title documents proving ownership. The deeds will be held by the mortgage lender or property owner if no mortgage is held on the property.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Deposit</h2><div class="heightDiv5"><!-- --></div><p>A sum of money (usually a minimum of 5%) paid by the buyer on exchange of contracts.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Dilapidations</h2><div class="heightDiv5"><!-- --></div><p>Any disrepair or damage to a rented property.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Disbursements</h2><div class="heightDiv5"><!-- --></div><p>Fees paid by the buyer\'s solicitor on the buyer&acute;s behalf such as stamp duty, land registry and search fees.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Discharge</h2><div class="heightDiv5"><!-- --></div><p>Paying off a mortgage.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Draft Contract</h2><div class="heightDiv5"><!-- --></div><p>Preliminary, unconfirmed version of the contract.';
			break;

		case 'Jargon_e':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Early repayment charge (ERC)</h2><div class="heightDiv5"><!-- --></div><p>A charge made by a lender if the borrower terminates a mortgage in advance of the terms of the particular mortgage. This normally occurs when the borrower has benefited from reduced payments or cash back in the early period of a mortgage.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Easement</h2><div class="heightDiv5"><!-- --></div><p>The legal term for the right to use someone else\'s property such as a shared driveway or a footpath.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Exchange of contracts</h2><div class="heightDiv5"><!-- --></div><p>The point at which signed contracts are exchanged, legally committing the buyer and seller to the purchase and sale of a property at the agreed price. Completion will normally take place at a set time thereafter.';
			break;

		case 'Jargon_f':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Failed valuation survey</h2><div class="heightDiv5"><!-- --></div><p>When the lender turns down your mortgage application after the surveyor&acute;s valuation report indicates the property is not worth the previously agreed asking price. </p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">First time buyer</h2><div class="heightDiv5"><!-- --></div><p>A person who does not already own a property and is therefore unencumbered.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Fixed rate mortgage</h2><div class="heightDiv5"><!-- --></div><p>A mortgage in which the interest rate is set for an agreed period of time.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Fixtures &amp; fittings</h2><div class="heightDiv5"><!-- --></div><p>All non-structural items included in the purchase of a property.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Flying freehold</h2><div class="heightDiv5"><!-- --></div><p>When part of a freehold property overhangs part of a different freehold property or land. </p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Freehold</h2><div class="heightDiv5"><!-- --></div><p>Technical word for the ownership of the property, meaning that it belongs to the owner outright.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Freeholder</h2><div class="heightDiv5"><!-- --></div><p>The person or persons who own a property outright.';
			break;

		case 'Jargon_g':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Gazumping</h2><div class="heightDiv5"><!-- --></div><p>If a seller accepts an offer from one party only to accept a higher offer at a later stage from someone else then this is called Gazumping. It is a practice not uncommon in thriving housing markets however it is frowned upon by many.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Gazundering</h2><div class="heightDiv5"><!-- --></div><p>If a buyer forces a seller into accepting a lower offer for their property just prior to contracts being exchanged by using the threat of pulling out of the purchase completely this is called Gazundering. Again this is a practice frowned upon by many. </p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Ground rent</h2><div class="heightDiv5"><!-- --></div><p>The annual charge levied by the freeholder to the leaseholder.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Guarantor</h2><div class="heightDiv5"><!-- --></div><p>A lender may sometimes require a borrower to appoint a guarantor. This is someone who promises to pay the borrowers debt if the borrower defaults on his repayments.';
			break;

		case 'Jargon_h':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Homebuyer\'s survey and valuation (house/flat buyer\'s report)</h2><div class="heightDiv5"><!-- --></div><p>This is a survey report, which is not as detailed as a structural survey, carried out by a chartered surveyor to assess the state of a property and its value.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Housing association</h2><div class="heightDiv5"><!-- --></div><p>A non-profit making body that provides relatively low rent accomodation. They also often run a scheme which lets you buy a percentage of the property and pay rent on the rest (see also Shared Ownership).';
			break;

		case 'Jargon_i':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">IFA</h2><div class="heightDiv5"><!-- --></div><p>Independent Financial Advisor. Someone who provides independent financial advice without being tied to a particular lender.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Interest-only mortgage</h2><div class="heightDiv5"><!-- --></div><p>There are 2 types of mortgage, interest-only or capital repayment. Interest-only mortgage stays the same throughout the mortgage term. Interest and a premium to an investment vehicle are paid monthly. At the end of the term, the proceeds from the investment vehicle are used to repay the mortgage. The amount will depend on the performance of the investment vehicle. If you choose an interest only mortgage you will be responsible for ensuring that you have sufficient funds available to repay your mortgage at the end of the term.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Inventory</h2><div class="heightDiv5"><!-- --></div><p>A list which describes the condition of furnishings and contents of a leased property at the commencement of the tenancy in order that any dilapidation during the tenancy can be identified. The inventory will then be checked again at the end of the tenancy.';
			break;

		case 'Jargon_j':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Joint agency</h2><div class="heightDiv5"><!-- --></div><p>This is where you appoint two agents to sell your property. The commission is often higher when appointing more than one agent.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Joint tenancy</h2><div class="heightDiv5"><!-- --></div><p>People who have a joint mortgage generally have a joint tenancy. This is therefore the way you would generally own a property with your partner. You both have an equal share in the equity of the property and if you die ownership passes to the other partner.';
			break;

		case 'Jargon_k':
			sContent = 'No jargon under K';
			break;

		case 'Jargon_l':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Land registry fee</h2><div class="heightDiv5"><!-- --></div><p>This is paid to the Land Registry to formally register ownership of a property.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Lease</h2><div class="heightDiv5"><!-- --></div><p>A legal document by which the freehold (or leasehold) owner of a property lets the premises or a part of it to another party for an agreed length of time, after the expiry of which ownership may revert to the freeholder or superior leaseholder.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Leasehold</h2><div class="heightDiv5"><!-- --></div><p>Denotes that the ownership of the property is by way of a lease.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Listed building</h2><div class="heightDiv5"><!-- --></div><p>A building officially listed as being of special architectural or historic interest, which cannot be demolished or altered without (local) government consent.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Local authority search</h2><div class="heightDiv5"><!-- --></div><p>A buyer\'s solicitor will make an enquiry (search) to the local council regarding any outstanding enforcement or future development issues which might affect the property or immediate area.';
			break;

		case 'Jargon_m':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Maintenance charge (or service charge)</h2><div class="heightDiv5"><!-- --></div><p>The cost of repairing and maintaining external or internal communal parts of a building charged to the tenant or leaseholder. Maintenance charges are common on most Leasehold properties.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Mortgage rate</h2><div class="heightDiv5"><!-- --></div><p>The standard variable interest rate quoted by all mortgage lenders which normally varies with the Bank of England base rate. All discounted rates are based on this mortgage rate.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Mortgage term</h2><div class="heightDiv5"><!-- --></div><p>The period of time over which (repayment mortgage) or at the end of which (endowment mortgage) the loan is to be repaid.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Mortgagee</h2><div class="heightDiv5"><!-- --></div><p>The lender of a mortgage (ie: bank or building society).</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Multiple agency</h2><div class="heightDiv5"><!-- --></div><p>Several agents market your property and the one that sells it gets the commission. Again the commissionn is normally higher when appointing more than one agent.';
			break;

		case 'Jargon_n':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">National House Building Association</h2><div class="heightDiv5"><!-- --></div><p>A governing body for new homes who will issue a 10 year structural guarantee. Their inspectors will ensure that your new home is built properly and is safe.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Negative equity</h2><div class="heightDiv5"><!-- --></div><p>When the value of the property falls to less than the outstanding mortgage.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">NHBC scheme (National House-Building Council)</h2><div class="heightDiv5"><!-- --></div><p>A type of building guarantee available on some newly built homes under which defects occurring within a specified time after construction are remedied.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Notice</h2><div class="heightDiv5"><!-- --></div><p>An official request by the freeholder or landlord to vacate a property. A freeholder or landlord may serve you notice on your home for a variety of reasons and will give you a notice period in which to find alternative accomodation.';
			break;

		case 'Jargon_o':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Off-plan</h2><div class="heightDiv5"><!-- --></div><p>This is when you buy a new home before it has been built based on the plans and artist\'s impressions. Discounts can sometimes be available if buying off-plan.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Ombudsman</h2><div class="heightDiv5"><!-- --></div><p>Independent professional bodies who investigate complaints on behalf of customers against, for example, estate agents, solicitors and insurance companies.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">One hundred percent mortgage</h2><div class="heightDiv5"><!-- --></div><p>A loan for the full cost of the home you are buying if are unable to raise a deposit. </p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Open market value</h2><div class="heightDiv5"><!-- --></div><p>The price a property would achieve when there is a willing buyer and willing seller.';
			break;

		case 'Jargon_p':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Part exchange </h2><div class="heightDiv5"><!-- --></div><p>A new home developer may offer to buy your home and put its value towards the cost of the new home you are intersted in buying through them. It is very convenient as it negates the possibility of becoming embroiled in a chain. The downside is that the developer will often offer below market value so they can make a profit when they re-sell it.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Peppercorn ground rent</h2><div class="heightDiv5"><!-- --></div><p>A nominal periodic rent usually paid annually.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Personal search</h2><div class="heightDiv5"><!-- --></div><p>This is a manual search by a conveyancer or some other specialist who manually undertakes the same activities as in a local search. These can be completed in a matter of days rather than weeks though they do end up being more expensive.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Preliminary enquiries</h2><div class="heightDiv5"><!-- --></div><p>The initial enquiries about a property put forward to a seller which the seller must answer before the exchange of contracts.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Probate property</h2><div class="heightDiv5"><!-- --></div><p>A property that is being sold by the executors of an estate due to death. Probate will need to be granted before a probate property sale can be completed.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Property Chain</h2><div class="heightDiv5"><!-- --></div><p>If a buyer is reliant upon completion of the sale of his existing property, in order to complete on the purchase of his new property, then he is dependent on his &quot;chain&quot;.';
			break;

		case 'Jargon_q':
			sContent = 'No jargon under Q';
			break;

		case 'Jargon_r':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Rebuild cost</h2><div class="heightDiv5"><!-- --></div><p>Required for insurance purposes and is the cost of completely rebuilding your home if it is destroyed.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Redemption</h2><div class="heightDiv5"><!-- --></div><p>When a mortgage is fully repaid.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Re-mortgage</h2><div class="heightDiv5"><!-- --></div><p>Refinancing a property by either switching a mortgage from one lender to another or by taking out a second mortgage to draw down any equity gained by a rise in value.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Repayment mortgage</h2><div class="heightDiv5"><!-- --></div><p>A mortgage repaid by way of monthly repayments of capital combined with interest.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Repossession</h2><div class="heightDiv5"><!-- --></div><p>When the mortgage lender takes possession of your property due to continued non-payment of the mortgage.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Retention</h2><div class="heightDiv5"><!-- --></div><p>The lender may hold back part of a mortgage loan until repairs or specified works to the property are satisfactorily completed.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Right of way</h2><div class="heightDiv5"><!-- --></div><p>The legal term for the right to use someone else\'s property such as a shared driveway or a footpath.';
			break;

		case 'Jargon_s':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Search</h2><div class="heightDiv5"><!-- --></div><p>A request or enquiry for information concerning the property held by a local authority or by the land registry.</p><div class="heightDiv20"><!-- --></div><!--<h2 class="fBlack fBold f12">Self-certification mortgage</h2><div class="heightDiv5"></div><p>These types of mortgages are becoming more common. They are mainly for people whose income is difficult to assess using the standard method adopted by most conventional mortgage lenders. Bonuses, commission and seasonal work can cause income to vary over time or be difficult to guarantee and this may not be considered acceptable in order to get a loan. The main groups of people that opt for self-certification mortgages are: Self-employed and unsalaried company directors, contract workers and  commission-based workers (often in sales or recruitment). </p><div class="heightDiv20"></div>--><h2 class="fBlack fBold f12">Septic tank</h2><div class="heightDiv5"><!-- --></div><p>A tank in which sewage is decomposed by bacteriological. This is common in properties in isolated areas.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Service charge (or maintanence charge)</h2><div class="heightDiv5"><!-- --></div><p>The cost of repairing and maintaining external or internal communal parts of a building charged to the tenant or leaseholder. Maintenance charges are common on most Leasehold properties.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Shared ownership scheme</h2><div class="heightDiv5"><!-- --></div><p>This is where a Registered Social Landlord will provide you with some of the funds to purchase your home with you providing the rest by way of a mortgage. There are various criteria that you must fulfill in order to qualify for a shared ownership scheme.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Sitting tenant</h2><div class="heightDiv5"><!-- --></div><p>Someone who has a legal right of occupation to a property even if the property is sold to someone else and can apply to the local authority to set a fair rent.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Sold subject to contract</h2><div class="heightDiv5"><!-- --></div><p>Meaning you have agreed to buy or sell a property but the contracts have not yet been exchanged.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Sole agent</h2><div class="heightDiv5"><!-- --></div><p>When a seller chooses only one estate agent to sell their home.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Solicitor</h2><div class="heightDiv5"><!-- --></div><p>Legal expert handling all documentation for the sale or purchase of a property.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Stamp duty</h2><div class="heightDiv5"><!-- --></div><p>Stamp duty is a government tax imposed on buying a home. Currently the tax is 1% of the property\'s total value for those valued at between &pound;125k and &pound;250k, 3% for properties valued between &pound;250k - &pound;500k and 5% over &pound;500k.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Subject to Contract</h2><div class="heightDiv5"><!-- --></div><p>Indicates that an agreement is not yet legally binding';
			break;

		case 'Jargon_t':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Telegraphic transfer</h2><div class="heightDiv5"><!-- --></div><p>Electronic transfer of money between two parties on the sale/purchase of a property. Will often incur a fee from your solicitor and monies sent from a lender is usually in this form.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Tenancy</h2><div class="heightDiv5"><!-- --></div><p>The temporary possession of a property by a tenant.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Tenancy agreement</h2><div class="heightDiv5"><!-- --></div><p>A legal agreement designed to protect the rights of the tenant and landlord and setting out all the terms and conditions of the rental arrangements.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Tenure</h2><div class="heightDiv5"><!-- --></div><p>Conditions on which a property is held (ie: length of lease).</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Title deeds</h2><div class="heightDiv5"><!-- --></div><p>Documents showing the legal ownership of a property.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Transfer deeds</h2><div class="heightDiv5"><!-- --></div><p>The land registry document that transfers legal ownership from seller to buyer.';
			break;

		case 'Jargon_u':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Under offer</h2><div class="heightDiv5"><!-- --></div><p>The status of a property for sale when a seller has accepted an offer from a purchaser but prior to exchange of contracts.';
			break;

		case 'Jargon_v':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Valuation</h2><div class="heightDiv5"><!-- --></div><p>A basic survey of a property to estimate its value for mortgage purposes. Mortgage lenders will insist on this before lending.</p><div class="heightDiv20"><!-- --></div><h2 class="fBlack fBold f12">Vendor</h2><div class="heightDiv5"><!-- --></div><p>The legal name for a person selling a property.';
			break;

		case 'Jargon_w':
			sContent = 'No jargon for W';
			break;

		case 'Jargon_x':
			sContent = 'No jargon for X';
			break;

		case 'Jargon_y':
			sContent = '<div class="heightDiv10"><!-- --></div><h2 class="fBlack fBold f12">Yield</h2><div class="heightDiv5"><!-- --></div><p>Income from a property calculated as a percentage of it\'s value.';
			break;

		case 'Jargon_z':
			sContent = 'No jargon for Z';
			break;

		default:
			sContent = '<p>ERROR - please contact the website administrator</p>';
	}

	oDiv.innerHTML = sContent;
}

/*function calculateSavings()
{
	var iValue = parseInt(document.getElementById('sc_value').value);
	var dCommission = parseFloat(document.getElementById('sc_commission').value)/100;

	if(!(iValue > 0 && dCommission > 0))
	{
		document.getElementById('savings-result').innerHTML = '';
		alert('Please enter valid numbers for \nProperty value and Commision');
		return;
	}

	var dHatchedCost;
	var dAgentCost = (iValue * dCommission) * 1.150;

	dHatchedCost = (249 + 249) * 1.150;

	var dSaving = (dAgentCost - dHatchedCost).toFixed(2);

	if (dSaving >= 0)
	{
		document.getElementById('savings-result').innerHTML = 'Save &pound;' + dSaving.toString();
	}
	else
	{
		dSaving = dSaving * -1;
		document.getElementById('savings-result').innerHTML = 'Extra &pound;' + dSaving.toString();
	}
}
*/


function calculateSavings()
{
	var iValue = parseInt(document.getElementById('sc_value').value);
	var dCommission = parseFloat(document.getElementById('sc_commission').value)/100;
	var sFee = document.getElementById('sc_fee').value;

	if(!(iValue > 0 && dCommission > 0))
	{
		document.getElementById('savings-result').innerHTML = '';
		alert('Please enter valid numbers for \nProperty value and Commision');
		return;
	}

	var dHatchedCost;
	var dAgentCost = (iValue * dCommission) * 1.2;

	switch (sFee)
	{
		case '1':
			dHatchedCost = iValue * 0.005 * 1.2;
			if (dHatchedCost < 958.80) dHatchedCost = 958.80;
			break;

		case '2':
			dHatchedCost = (99 + (iValue * 0.0025)) * 1.2;
			if (dHatchedCost < 478.80) dHatchedCost = 478.80;
			break;

		case '3':
			dHatchedCost = (199 + 199) * 1.2;
			break;
	}

	var dSaving = (dAgentCost - dHatchedCost).toFixed(2);

	if (dSaving >= 0)
	{
		document.getElementById('savings-result').innerHTML = 'Save &pound;' + dSaving.toString();
	}
	else
	{
		dSaving = dSaving * -1;
		document.getElementById('savings-result').innerHTML = 'Extra &pound;' + dSaving.toString();
	}
}


function winPop(pageToLoad, winName, width, height, center, scroll, control)
{
    xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 ) && (center))
    {
        xposition = (screen.width - width) / 2;
        yposition = (screen.height - height) / 2;
    }
    args = "width=" + width + ","
    + "height=" + height + ","
    + "location=0,"
    + "menubar=0,"
    + "resizable=" + control + ","
    + "scrollbars="+scroll+", "
    + "status=1,"
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

    window.open(pageToLoad,winName,args );
}

function winPopFull(pageToLoad, winName, width, height, center, scroll, control)
{
    xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 ) && (center))
    {
        xposition = (screen.width - width) / 2;
        yposition = (screen.height - height) / 2;
    }
    args = "width=" + width + ","
    + "height=" + height + ","
    + "location=1,"
    + "menubar=1,"
    + "resizable=" + control + ","
    + "scrollbars="+scroll+", "
    + "status=1,"
    + "titlebar=1,"
    + "toolbar=1,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

    window.open(pageToLoad,winName,args );
}

/*function ToggleInstallation(pTickBox)
{
	var sContentHTML = '';
	var sContentHTML2 = '';
	if (pTickBox.checked)
	{

	sContentHTML2 += '<table cellpadding="0" cellspacing="0">';
	sContentHTML2 += '<tr>';
    sContentHTML2 += '<td >For Sale Board</td>';
    sContentHTML2 += '<td width="136" class="stat">&pound;17.63</td>';
    sContentHTML2 += '</tr>';
    sContentHTML2 += '</table>';

	sContentHTML += '<p>We can also come round and install the sign at the front of your house if you would prefer.</p>';
	sContentHTML += '<p class="introtxt">Additional Cost: &pound;20*</p>';
	sContentHTML += '<p><h2><input class="tickbox" type="checkbox" name="Installation" onclick="Ins(this);"/> Add this to my package</h2></p>';

	}
	document.getElementById('installation').innerHTML = sContentHTML;
	document.getElementById('saleboard').innerHTML = sContentHTML2;

}
*/
function setPriceOptions(pCategory)
{
	if ((pCategory == 'let')||(pCategory == 'Let'))
	{
		document.forms['QuickSearch'].MaxPrice.options.length = 6;
		document.forms['QuickSearch'].MaxPrice.options[0].value = '';
		document.forms['QuickSearch'].MaxPrice.options[0].text  = '';
		document.forms['QuickSearch'].MaxPrice.options[1].value = '500';
		document.forms['QuickSearch'].MaxPrice.options[1].text  = '500 pcm';
		document.forms['QuickSearch'].MaxPrice.options[2].value = '750';
		document.forms['QuickSearch'].MaxPrice.options[2].text  = '750 pcm';
		document.forms['QuickSearch'].MaxPrice.options[3].value = '1000';
		document.forms['QuickSearch'].MaxPrice.options[3].text  = '1000 pcm';
		document.forms['QuickSearch'].MaxPrice.options[4].value = '1500';
		document.forms['QuickSearch'].MaxPrice.options[4].text  = '1500 pcm';
		document.forms['QuickSearch'].MaxPrice.options[5].value = '';
		document.forms['QuickSearch'].MaxPrice.options[5].text  = '2000+ pcm';
	}
	else
	{
		document.forms['QuickSearch'].MaxPrice.options.length = 14;
		document.forms['QuickSearch'].MaxPrice.options[0].value = '';
		document.forms['QuickSearch'].MaxPrice.options[0].text  = '';
		document.forms['QuickSearch'].MaxPrice.options[1].value = '100000';
		document.forms['QuickSearch'].MaxPrice.options[1].text  = '100k';
		document.forms['QuickSearch'].MaxPrice.options[2].value = '125000';
		document.forms['QuickSearch'].MaxPrice.options[2].text  = '125k';
		document.forms['QuickSearch'].MaxPrice.options[3].value = '150000';
		document.forms['QuickSearch'].MaxPrice.options[3].text  = '150k';
		document.forms['QuickSearch'].MaxPrice.options[4].value = '175000';
		document.forms['QuickSearch'].MaxPrice.options[4].text  = '175k';
		document.forms['QuickSearch'].MaxPrice.options[5].value = '200000';
		document.forms['QuickSearch'].MaxPrice.options[5].text  = '200k';
		document.forms['QuickSearch'].MaxPrice.options[6].value = '250000';
		document.forms['QuickSearch'].MaxPrice.options[6].text  = '250k';
		document.forms['QuickSearch'].MaxPrice.options[7].value = '300000';
		document.forms['QuickSearch'].MaxPrice.options[7].text  = '300k';
		document.forms['QuickSearch'].MaxPrice.options[8].value = '400000';
		document.forms['QuickSearch'].MaxPrice.options[8].text  = '400k';
		document.forms['QuickSearch'].MaxPrice.options[9].value = '500000';
		document.forms['QuickSearch'].MaxPrice.options[9].text  = '500k';
		document.forms['QuickSearch'].MaxPrice.options[10].value = '750000';
		document.forms['QuickSearch'].MaxPrice.options[10].text  = '750k';
		document.forms['QuickSearch'].MaxPrice.options[11].value = '1000000';
		document.forms['QuickSearch'].MaxPrice.options[11].text  = '1million';
		document.forms['QuickSearch'].MaxPrice.options[12].value = '2000000';
		document.forms['QuickSearch'].MaxPrice.options[12].text  = '2million';
		document.forms['QuickSearch'].MaxPrice.options[13].value = '';
		document.forms['QuickSearch'].MaxPrice.options[13].text  = '5million+';
	}
}

function setAdvPriceOptions(pCategory)
{
	if ((pCategory.toString() == 'let')||(pCategory.toString() == 'Let'))
	{
		document.forms['AdvSearch'].MinPrice.options.length = 6;
		document.forms['AdvSearch'].MinPrice.options[0].value = '';
		document.forms['AdvSearch'].MinPrice.options[0].text  = '';
		document.forms['AdvSearch'].MinPrice.options[1].value = '500';
		document.forms['AdvSearch'].MinPrice.options[1].text  = '500 pcm';
		document.forms['AdvSearch'].MinPrice.options[2].value = '750';
		document.forms['AdvSearch'].MinPrice.options[2].text  = '750 pcm';
		document.forms['AdvSearch'].MinPrice.options[3].value = '1000';
		document.forms['AdvSearch'].MinPrice.options[3].text  = '1000 pcm';
		document.forms['AdvSearch'].MinPrice.options[4].value = '1500';
		document.forms['AdvSearch'].MinPrice.options[4].text  = '1500 pcm';
		document.forms['AdvSearch'].MinPrice.options[5].value = '';
		document.forms['AdvSearch'].MinPrice.options[5].text  = '2000+ pcm';

		document.forms['AdvSearch'].MaxPrice.options.length = 6;
		document.forms['AdvSearch'].MaxPrice.options[0].value = '';
		document.forms['AdvSearch'].MaxPrice.options[0].text  = '';
		document.forms['AdvSearch'].MaxPrice.options[1].value = '500';
		document.forms['AdvSearch'].MaxPrice.options[1].text  = '500 pcm';
		document.forms['AdvSearch'].MaxPrice.options[2].value = '750';
		document.forms['AdvSearch'].MaxPrice.options[2].text  = '750 pcm';
		document.forms['AdvSearch'].MaxPrice.options[3].value = '1000';
		document.forms['AdvSearch'].MaxPrice.options[3].text  = '1000 pcm';
		document.forms['AdvSearch'].MaxPrice.options[4].value = '1500';
		document.forms['AdvSearch'].MaxPrice.options[4].text  = '1500 pcm';
		document.forms['AdvSearch'].MaxPrice.options[5].value = '';
		document.forms['AdvSearch'].MaxPrice.options[5].text  = '2000+ pcm';
	}
	else
	{
		document.forms['AdvSearch'].MaxPrice.options.length = 14;
		document.forms['AdvSearch'].MaxPrice.options[0].value = '';
		document.forms['AdvSearch'].MaxPrice.options[0].text  = '';
		document.forms['AdvSearch'].MaxPrice.options[1].value = '100000';
		document.forms['AdvSearch'].MaxPrice.options[1].text  = '100k';
		document.forms['AdvSearch'].MinPrice.options[2].value = '125000';
		document.forms['AdvSearch'].MinPrice.options[2].text  = '125k';
		document.forms['AdvSearch'].MinPrice.options[3].value = '150000';
		document.forms['AdvSearch'].MinPrice.options[3].text  = '150k';
		document.forms['AdvSearch'].MinPrice.options[4].value = '175000';
		document.forms['AdvSearch'].MinPrice.options[4].text  = '175k';
		document.forms['AdvSearch'].MinPrice.options[5].value = '200000';
		document.forms['AdvSearch'].MinPrice.options[5].text  = '200k';
		document.forms['AdvSearch'].MinPrice.options[6].value = '250000';
		document.forms['AdvSearch'].MinPrice.options[6].text  = '250k';
		document.forms['AdvSearch'].MinPrice.options[7].value = '300000';
		document.forms['AdvSearch'].MinPrice.options[7].text  = '300k';
		document.forms['AdvSearch'].MinPrice.options[8].value = '400000';
		document.forms['AdvSearch'].MinPrice.options[8].text  = '400k';
		document.forms['AdvSearch'].MinPrice.options[9].value = '500000';
		document.forms['AdvSearch'].MinPrice.options[9].text  = '500k';
		document.forms['AdvSearch'].MinPrice.options[10].value = '750000';
		document.forms['AdvSearch'].MinPrice.options[10].text  = '750k';
		document.forms['AdvSearch'].MinPrice.options[11].value = '1000000';
		document.forms['AdvSearch'].MinPrice.options[11].text  = '1million';
		document.forms['AdvSearch'].MinPrice.options[12].value = '2000000';
		document.forms['AdvSearch'].MinPrice.options[12].text  = '2million';
		document.forms['AdvSearch'].MinPrice.options[13].value = '';
		document.forms['AdvSearch'].MinPrice.options[13].text  = '5million+';
	}
}

// This function will change the class of <a> when it is selected in common/jargon.html page
function changeBgToSelected(obj)
{
	var linksArr = getElementsByClassName("jargonBgSelected");

	if(linksArr.length > 0)
	{
		linksArr[0].className = "jargonBg jargonTxt";
	}

	obj.className = "jargonBgSelected jargonTxt";
}

function walkTheDOM (node, func)
{
	func(node);
	node = node.firstChild;
	while (node)
	{
		walkTheDOM(node, func);
		node = node.nextSibling;
	}
}

function getElementsByClassName (className)
{
	var results = [];
	walkTheDOM(document.body, function (node)
	{
		var a, c = node.className, i;
		if (c)
		{
			a = c.split(' ');
			for (i=0; i<a.length; i++)
			{
				if (a[i] === className)
				{
					results.push(node);
					break;
				}
			}
		}
	});
	return results;
}


//this function will get the value of given element and capitalize first letter of each word
function autoCapitalize(elem)
{
	var elemTxt = elem.value;
	var elemTxtArr = elemTxt.split(" ");

	var tempTxt = "";

	for(i = 0; i < elemTxtArr.length; i++)
	{
		if(elemTxtArr[i] != '')
		{
			txtToReplace = elemTxtArr[i].substring(0, 1);
			txtToReplaceWith = elemTxtArr[i].substring(0, 1).toUpperCase();

			if(tempTxt == "")
			{
				tempTxt = elemTxtArr[i].replace(txtToReplace, txtToReplaceWith);
			}
			else
			{
				tempTxt = tempTxt + ' ' + elemTxtArr[i].replace(txtToReplace, txtToReplaceWith);
			}
		}
	}

	elem.value = tempTxt;
}

// ########################### PHILTE ADDITIONS ######################################## //


function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	{
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}

	if (window.ActiveXObject)
	{
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

