

function validatefaq()
{
	if (document.frmFaq.search.value == "")
	{
		alert("Enter text for search");
		document.frmFaq.search.focus();
		return false;
	}
	frmFaq.action="faqdetails.aspx?flag=2&search="+document.frmFaq.search.value;
	return true;
}

function ValidateContactUs()
{
 	
 	var ErrMsg="";
	var emailPat = /^[A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)*[@][A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)+$/
	var matchArray = Form1.txtEmail.value.match(emailPat);
	var ErrorDisp = "You are missing following entries.\n";
	ErrorDisp += "----------------------------------------\n";
	
	if(document.Form1.txtFullName.value=="" )
	{
		alert("Your name required\n");
		document.Form1.txtFullName.focus();
		return false;
	}
	if(document.Form1.txtEmail.value=="")
	{
	    alert("Email is required");		
		document.Form1.txtEmail.focus();
		return false;
	}
	else if (matchArray == null)
	{
		alert("Invalid Email format");
		document.Form1.txtEmail.focus();
		return false;
	}
	if(document.Form1.txtBudget.value=="")
	{    alert("Budget is required"); 
		 document.Form1.txtBudget.focus();
		 return false;
	 }
	
	if(document.Form1.txtTimeScale.value=="")
	{
	    alert("Timespan is required");
		document.Form1.txtTimeScale.focus();
		return false;		
	}
	
	/*if(document.Form1.Contactus2_ddlCountry.selectedIndex==".::Please Select::.")
	{
		ErrMsg += "Country required\n";
	}*/
	
	if (ErrMsg=="")
	{
		return true;
	}
	else
	{	
		alert(ErrorDisp+ErrMsg);
		return false;
	}
}

function ValidateFaqDetails()
{
	var emailPat = /^[A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)*[@][A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)+$/
	var matchArray = Form1.TextBox2.value.match(emailPat);
	if(document.Form1.TextBox2.value=="")
	{
		alert("Email required");
		document.Form1.TextBox2.focus();
		return false;
	}
	else if (matchArray == null)
	{
		alert("Invalid Email format");
		document.Form1.TextBox2.focus();
		return false;
	}
	if(document.Form1.txtArea.value=="")
	{
		alert("Question required");
		document.Form1.txtArea.focus();
		return false;
	}
	return true;
}

function ValidateProfile()
{
	
 	var emailPat = /^[A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)*[@][A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)+$/
	var matchArray = Form2.Profile1_txtEmail.value.match(emailPat);
	if(document.Form2.Profile1_txtFName.value=="")
	{  
		alert("First name required");
		document.Form2.Profile1_txtFName.focus();
		return false;
	}
	if(document.Form2.Profile1_txtFName.value.charAt(0)==' ')
	{   alert("No spaces allowed.\n");
		document.Form2.Profile1_txtFName.focus();
		return false;
	}
	if(document.Form2.Profile1_txtUserName.value=="")
	{
		alert("User name required");
		document.Form2.Profile1_txtUserName.focus();
		return false;
	}
	if(document.Form2.Profile1_txtUserName.value.charAt(0)==' ')
	{   alert("No spaces allowed.\n");
		document.Form2.Profile1_txtUserName.focus();
		return false; 
    }
	if(document.Form2.Profile1_txtPassword.value=="")
	{
		alert("Password required");
		document.Form2.Profile1_txtPassword.focus();
		return false;
	}
	if(document.Form2.Profile1_txtPassword.value.charAt(0)==' ')
	{    alert("No spaces allowed.\n"); 
		document.Form2.Profile1_txtPassword.focus();
		return false;
	 }
	if(document.Form2.Profile1_txtEmail.value=="")
	{
		alert("Email required");
		document.Form2.Profile1_txtEmail.focus();
		return false;
	}
	else if (matchArray == null)
	{
		alert("Invalid Email format");
		document.Form2.Profile1_txtEmail.focus();
		return false;
	}
	
	if(document.Form2.Profile1_ddlCountry.value==".::Please Select::.")
	{
		alert("Country required");
		return false;
	}
	
	return true;
	}
	
function loopy() {
		loc = window.location.href
		sPos =loc.lastIndexOf("/")+1;
		if (sPos != -1) loc = loc.substring(0,sPos); // loose existing search
		window.location = loc+'logout.aspx';
	}

function popup(url)
{
	width = 450;
	height = 345;
	xx = window.screen.width;
	yy = window.screen.height;
	xx = (xx/2) - (width/2);
	yy = (yy/2) - (height);
	style = 'left = ' +  xx + ',top = ' + yy + ',width='+ width +',height=' + height + ',directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no';
	newwindow=window.open(url,'name',style);
	if (window.focus) {newwindow.focus()}
}

function HeaderEmailValidation()
{
	var emailPat = /^[A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)*[@][A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)+$/
	var matchArray =document.newsletter.m_txtNewsLetter.value.match(emailPat);
	if(document.newsletter.m_txtNewsLetter.value=="Enter Email ...")
	{
		alert("Enter Email address.");
		document.newsletter.m_txtNewsLetter.focus();
		return false;
	}
	else if (matchArray == null)
	{
		alert("Invalid Email format.");
		document.newsletter.m_txtNewsLetter.value="";
		document.newsletter.m_txtNewsLetter.focus();
		return false;
	}
}


function HeaderLoginValidation()
{
	if(document.login.m_txtUserName.value=="Username")
	{
		alert("Enter your username.");
		document.login.m_txtUserName.focus();
		return false;
	}
	
	if(document.login.m_txtPassword.value=="Password")
	{
		alert("Enter your password.");
		document.login.m_txtPassword.focus();
		return false;
	}
	return true;
}

function HeaderSearchValidation()
{
	if(document.Search.m_txtSearch.value=="Search Text...")
	{
		alert("Enter search text.");
		document.Search.m_txtSearch.focus();
		return false;
	}
}
function GET123()
{
	//alert();
	var a_p = "";
	var d = new Date();
	var curr_hour = d.getHours();

	if (curr_hour< 12)
	{
	a_p = "AM";
	}
	else
	{
	a_p = "PM";
	}
	if (curr_hour == 0)
	{
	curr_hour = 12;
	}
	if (curr_hour> 12)
	{
	curr_hour = curr_hour- 12;
	}

	var curr_min = d.getMinutes();
	var CurrentTime=curr_hour+":"+curr_min+":"+a_p;
	var GreetingMessage;
	if(curr_hour>=0 && curr_hour<12 && a_p=="AM")
	{
		GreetingMessage="Good Morning";
	}
	if(curr_hour==12 && a_p=="PM" || curr_hour>=1 && curr_hour<4 && a_p=="PM")
	{
		GreetingMessage="Good Afternoon";
	}
	if(curr_hour==4 && a_p=="PM" || curr_hour>4 && curr_hour<12 && a_p=="PM")
	{
		GreetingMessage="Good Evening";
	}
	if(document.getElementById("RelocationMessage")!=null)
	{
		document.getElementById("RelocationMessage").innerHTML="<img src='dynamicdata/images/spacer.gif' width='10' height='23'/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+GreetingMessage+"!";
	}
	if(document.getElementById("welcome")!=null)
	{
		document.getElementById("welcome").innerHTML="<b>"+GreetingMessage+",</b>";
	}
}
function showdata(strCountryname)
{
	
	if(strCountryname=='oxforshire')
	{
		document.getElementById("countrytext").innerHTML="<div class='Oxfordshire' style='background-image:url(images/ukmap.gif);background-repeat:no-repeat;'><b><font color='black'>Oxfordshire</font></b><br><p> Oxfordshire is South East England&rsquo;s most rural county with over two thirds of its area dedicated to agriculture. The countryside is flat or quietly rolling with meadows and fields surrounding pockets of small villages. Two of which, Abingdon and Banbury, retain their tradition as market towns.</p>"+
          "<p>With a population of approximately 600,000 people (ever changing due to the student population), it occupies just over 1,000 square miles of which 75% is designated as an Area of Outstanding Natural Beauty.</p>"+
        "<p>The Oxfordshire Cotswolds includes the historic market towns of Burford, Chipping Norton, Witney and Woodstock and over eighty picturesque villages and surrounding countryside. This is very much a rural area in the heart of middle England.</p>"+
        "<p> Oxfordshire has a thriving economy with consistently low unemployment and is recognised as one of Europe&rsquo;s most prosperous regions. The county itself is mainly agricultural in terms of its production, with car, paper, brick and cement manufacture all high on its list of commercial activities. Oxfordshire has benefited from its proximity to London and its excellent road and rail links.</p>"+
        " <p>The country of Oxfordshire is full of history and the county town of Oxford is best known for its ancient and prestigious universities.</p></div>";
	}
	if(strCountryname=='London')
	{
		document.getElementById("countrytext").innerHTML="<div class='London' style='background-image:url(images/ukmap.gif);background-repeat:no-repeat;'><b><font color='black'>London</font></b><br>London is the Capital City of England with a population of circa 7,500,000 within the boundaries of Greater London.  The urban area of London extends beyond the limits of Greater London and has a population of over 8,000,000.  London's diverse population is made up of a wide range of people, cultures and religions and over 300 different languages are spoken within the City.  There are five major International airports serving the area and Heathrow Airport carries more International passengers than any other airport in the world."+
			"The city has become one of the most popular tourist destinations in the world boasting four World Heritage Sites - Palace of Westminster, Tower of London, the historic settlement of Greenwich and the Royal Botanic Gardens, Kew. "+
			"The Royal family have their main residence in London at Buckingham Palace and London remains one of the world's leading business, financial and cultural centres."+
			"<br>London has something to offer everyone, majestic stately homes, beautiful green parks, museums, theatres, art galleries and an abundance of shopping centres with all the major stores.<br>"+
			"Property prices in London have soured over the past few years and behind Moscow, London is now the second most expensive city in the world to live."+
			"</div>";
	}
	if(strCountryname=='wiltshire')
	{
		document.getElementById("countrytext").innerHTML="<div class='Wiltshire' style='background-image:url(images/ukmap.gif);background-repeat:no-repeat;'><b><font color='black'>Wiltshire</font></b><br>A mainly agricultural county in the South of England, Wiltshire covers an area of 1,343 square miles and has a population of around 600,000. Wiltshire is home to some of the most beautiful villages in England. It is also a mysterious place of prehistoric stone sites, strange crop circles and magnificent chalk horses.<br>"+
          "The administrative headquarters are at Trowbridge. <br> <br>"+
          "There is the beautiful medieval city of Salisbury boasting its Cathedral with the highest spire in England. The towns of Swindon and Wilton, famous for its carpets, are other major centres.<br>"+
         " <br> Stonehenge is probably the most famous prehistoric ancient monument in Britain, said by many to have originally been built for long forgotten mystical ceremonies. In the summer months, crop circles also adorn the fields surrounding this enigmatic area. Salisbury Plain itself has been a training ground for the British Army since the Napoleonic Wars. Along with this scenically beautiful area Wiltshire also offers Marlborough Downs, Savernake Forest and the rivers Kennet and the Salisbury and Bristol Avons as other physically attractive locations.<br>"+
         " <br>The county lists as its main products, wheat, cattle, carpets, rubber and engineering. </div>";
	}
	if(strCountryname=='birkshire')
	{
		document.getElementById("countrytext").innerHTML="<div class='Berkshire' style='background-image:url(images/ukmap.gif);background-repeat:no-repeat;'><b><font color='black'>Berkshire</font></b><br>The County of, Berkshire, lies to the west of London in the fertile Thames Valley. The County Town, Reading, is 35 miles from London. Berkshire is irregular in shape, occupying about 500 square miles. The name Berkshire derives from the great forest of birch trees which once grew here. Now the County is made up of rich agricultural land and thriving towns and cities. The M4 motorway and the railway provide commuters from Slough, Maidenhead, Reading and other parts of the County with swift access to London.<br> <br>"+
        "Although much of Berkshire is densely populated, the leafy lanes, pretty villages and traditional pubs offer as enticing a prospect of the English countryside as you would find anywhere. A boat trip along the River Thames, which flows through the county between Reading to Windsor, offers the most leisurely method of exploring some of the county&rsquo;s best scenery.<br>"+
        "<br> Berkshire is often referred to as 'Royal Berkshire' because of its close links to the British Royal Family. These include &ldquo;Royal&rdquo; Ascot racecourse and Windsor Castle - the oldest continuously occupied Royal residence in Britain. Windsor and the surrounding areas are steeped in the history of England and its Royal Heritage. It is surrounded by many historical sites including Runneymede, Eton and the Great Park</div>";
	}
	if(strCountryname=='bakingham')
	{
		document.getElementById("countrytext").innerHTML="<div class='Buckinghamshire' style='background-image:url(images/ukmap.gif);background-repeat:no-repeat;'><b><font color='black'>Buckinghamshire</font></b><br>Buckinghamshire gets its name from the Anglo-Saxon for &ldquo;the farm of Bucca's people&rdquo;. The county covers an area of approximately 720 square miles. It has a population of over 600,000 and a contrasting landscape of lively towns and tranquil countryside accessible for commuters working in London, Oxford and Birmingham. <br>"+
        "<br>The County Town, Aylesbury has a lovely cobbled Market Square dominated by a Victorian clock tower and is home to the famed Aylesbury ducklings. The M40 motorway runs along the southern border past Beaconsfield and High Wycombe heading west, whilst the M1 leads to Milton Keynes and the north.<br>"+
        "<br>To the south of Aylesbury, the Chiltern Hills cut across the county from southwest to northeast. In many places these chalky uplands are covered in beech woodland and are rich in wildlife including rare orchids and red kites. This undulating landscape is especially beautiful in autumn when the beech leaves turn from green through shades of gold. There are many walking tracks including the prehistoric Ridgeway that runs along the top of Chilterns and even passes through the grounds of Chequers, the traditional country house residence of the Prime Minister.<br>"+
        "Since the 1960's, Buckinghamshire has been among the fastest growing areas in Britain, mainly due to the development of Milton Keynes. Milton Keynes' growing population of 207,800 resulted in it being split from Buckinghamshire in 1997, during a Local Government Review.<br>"+
       "<br> Towns like Aylesbury and Buckingham have also grown rapidly, boosting the county's population. This growth is a testimony to the magnetic qualities of a region many call the most attractive Home County of them all.</div>";
	}
	if(strCountryname=='Hampshire')
	{
		document.getElementById("countrytext").innerHTML="<div class='Hampshire' style='background-image:url(images/ukmap.gif);background-repeat:no-repeat;'><b><font color='black'>Hampshire</font></b><br>Hampshire covers some 1,500 square miles with a population of 1,500,000. Its name comes from A homm or hamm, which was in Old English, a water meadow and the county has its fair share of these. The county town of Hampshire is Winchester where history, heritage and high street shopping are plentiful. <br>"+
		"<br> Hampshire boasts the largest intact original forest in England in the beautiful New Forest which covers 145 square miles and was a Saxon royal hunting ground. Over 100 square miles of the area encompassed by the New Forest is actually woodland and the remainder is taken up by farms and villages. Although not declared a national park until recent years, Hampshire's New Forest has nevertheless remained virtually unchanged since 1079 when William the Conqueror named it. The New Forest is famous for its wild ponies. <br>"+
        "<br> Hampshire offers unique scenic variation. There are the rolling hills of the chalk downs, the north downs slope towards Aldershot and the south downs rise near Petersfield. Different again is the Hampshire of the water meadows, the chalk streams of rivers like the Test providing some of the finest fly fishing in Britain. Then of course, the New Forest to the west of the county. The Hampshire coast offers variety, too: pine trees and steep ravines, known as chines, can be found in Bournemouth, the county&rsquo;s largest holiday town, but in the east the coastline is characterised by the deep-water estuaries of the Hamble and Beaulieu rivers.<br>"+
        "<br> With the ports of Southampton and Portsmouth the county has a strong nautical tradition. The 'Titanic' sailed from Southampton in 1912, for instance, and is just one of many hundreds of vessels that have embarked on their journey to the United States from that very port. Portsmouth, of course, is world famous as the home port of the Royal Navy and has been for generations.<br>"+
        "The county's products are mainly agricultural but have recently been embellished by the growth in its chemical, pharmaceutical and electronics industries.</div>"
	}
	if(strCountryname=='surrrey')
	{
		document.getElementById("countrytext").innerHTML="<div class='Surrey' style='background-image:url(images/ukmap.gif);background-repeat:no-repeat;'><b><font color='black'>Surrey</font></b><br>Surrey is situated due south of Greater London and is one of England's smallest counties at around 650 square miles but has one of the largest populations of over 1,000,000. It is not, however, overcrowded and with the characteristic rolling hills of the North Downs, beautiful country villages and large areas of woodland it is thought one of England's most beautiful counties.<br>"+
           "<br>The name Surrey derives from 'Sudergeona' or (southern region), a Saxon sub-kingdom of AD 673 that was part of a much larger kingdom including Middlesex.<br>"+
         " Kingston was once the county town but much of Northern Surrey has been dissolved into Greater London over the years due to boundary changes, so areas including Kingston, Wimbledon and Richmond are no longer actually in Surrey, although there is still a strong association.<br>"+
          "<br>Guildford is now the County town and boasts an impressive Cathedral, high on Stag Hill overlooking the town.<br>"+
          "One of the most famous places in Surrey is Epsom, which became popular during the 17th century when a spring was discovered that contained water that was rich in minerals and was thought to be therapeutic. This is where Epsom Salts originate.<br>"+
          "<br>Sport plays an important role in Surrey life, with horse racing at Epsom and Lingfield Park. Golf is also very popular in Surrey with lots of public courses set in the beautiful Surrey countryside, as well as a Championship course at Wentworth. Also associated with Surrey is the Wimbledon Lawn Tennis Championships. Cricket is also a major sport in Surrey with Surrey County Cricket Club being one of the top clubs. The Oval Cricket Ground which is one of the England test venues is the home ground.<br>"+
          "<br>Nowadays Surrey is part of the 'Stockbroker Belt' so called because of the large proportion of its inhabitants who commute to the City of London every day for work.</div>"
	}
	if(strCountryname=='surrrey')
	{
		document.getElementById("countrytext").innerHTML="<div class='Surrey' style='background-image:url(images/ukmap.gif);background-repeat:no-repeat;'><b><font color='black'>Surrey</font></b><br>Surrey is situated due south of Greater London and is one of England's smallest counties at around 650 square miles but has one of the largest populations of over 1,000,000. It is not, however, overcrowded and with the characteristic rolling hills of the North Downs, beautiful country villages and large areas of woodland it is thought one of England's most beautiful counties.<br>"+
           "<br>The name Surrey derives from 'Sudergeona' or (southern region), a Saxon sub-kingdom of AD 673 that was part of a much larger kingdom including Middlesex.<br>"+
         " Kingston was once the county town but much of Northern Surrey has been dissolved into Greater London over the years due to boundary changes, so areas including Kingston, Wimbledon and Richmond are no longer actually in Surrey, although there is still a strong association.<br>"+
          "<br>Guildford is now the County town and boasts an impressive Cathedral, high on Stag Hill overlooking the town.<br>"+
          "One of the most famous places in Surrey is Epsom, which became popular during the 17th century when a spring was discovered that contained water that was rich in minerals and was thought to be therapeutic. This is where Epsom Salts originate.<br>"+
          "<br>Sport plays an important role in Surrey life, with horse racing at Epsom and Lingfield Park. Golf is also very popular in Surrey with lots of public courses set in the beautiful Surrey countryside, as well as a Championship course at Wentworth. Also associated with Surrey is the Wimbledon Lawn Tennis Championships. Cricket is also a major sport in Surrey with Surrey County Cricket Club being one of the top clubs. The Oval Cricket Ground which is one of the England test venues is the home ground.<br>"+
          "<br>Nowadays Surrey is part of the 'Stockbroker Belt' so called because of the large proportion of its inhabitants who commute to the City of London every day for work.</div>"
	}
	
	if(strCountryname=='Hertfordshire')
	{
		document.getElementById("countrytext").innerHTML="<div class='Hertfordshire' style='background-image:url(images/ukmap.gif);background-repeat:no-repeat;'><b><font color='black'>Hertfordshire</font></b><br>Hertfordshire is a relatively small county in situated to the north of London with an area of just over 600 square miles. It is one of the most densely populated counties in England with a population of around 1,000,000. There are years of history associated with the county. Letchworth Garden City was the world&rsquo;s first garden city. Stevenage was designated the worlds first New Town, and also had the first pedestrianised shopping area.<br>"+
         "<br>The county is divided into two distinctive areas. In the east the new towns of Welwyn Garden City, Letchworth Garden City and the town of Watford are highly industrialised whilst in the West of the county, lie many smaller towns and villages which are overwhelmingly agricultural in their nature. Residents of the smaller west Hertfordshire towns and villages are known locally as 'Hedgehogs'.<br>"+
        "<br> Hertfordshire provides excellent opportunities for shopping and leisure activities, with many towns having bustling markets and excellent shopping centres sporting all the big name stores. <br>"+
        "Hertfordshire is blessed with some excellent examples of Britain's scenic beauty in the Chiltern Hills, which run through part of the west of the county into Buckinghamshire and Bedfordshire.<br>"+
        "Being comparatively close to London the county has some of the finest examples of traditional English country homes within its borders. Hatfield House, Knebworth House and Brocket Hall all date back centuries whilst in the market town of Berkhamsted, a Norman castle still stands.</div>";
	}
}
function removetext()
{
	document.getElementById("countrytext").innerHTML="";
}