// JavaScript Document
function imgswap2(theid, state)
	{
	document.getElementById(theid).src = 'gfx/buttons/menuarrow'+state+'.gif';
	//document.getElementById('test').innerHTML = 'gfx/backgrounds/'+theid+state+'.gif';
	}
	
function MM_openBrWindow(theURL,winName,features) { //v2.0
  var w = window.open(theURL,winName,features);
  w.focus();
}

function subformpc()
	{
	if(document.searchbypc.postcode.value.length >1)
		{
			document.searchbypc.submit()
			//location.href='quicksearch.php?qstext='+document.sf.qstext.value+'&soption='+document.sf.soption.value;
		}
		else
		{
			alert('Oops, you didn\'t enter a post code!');
		}
	}
	
function subform()
	{
	if(document.requestform.Telephone.value.length >1)
		{
			if(document.requestform.Email.value.length >1)
				{
					document.requestform.submit()
				} else { alert('Please enter an email address.'); }
			
		}
		else
		{
			alert('Please enter a telephone contact number.');
		}
	}
	
function subformdir()

		{
			document.searchbyborough.submit()
			//location.href='quicksearch.php?qstext='+document.sf.qstext.value+'&soption='+document.sf.soption.value;
		}


function menuhover(cellname)
	{
		document.getElementById(cellname).style.backgroundImage = "url(gfx/blumenubar2.gif)";
		document.getElementById(cellname).style.backgroundRepeat = "repeat-x";
		document.getElementById(cellname+'link').style.color = "#E6E8F4";
	}
	
function menuout(cellname)
	{
		document.getElementById(cellname).style.backgroundImage = "none";
		document.getElementById(cellname+'link').style.color = "#FFFFFF";
	}
	
