function currLocation()

{

alert(window.location)

}

function keywordSearch(url)
{
var keyval = document.getElementsByName('qt')[1];
window.location=url+"&qt="+keyval.value;
} 

function keyworkCheckSearch(url)
{
var keycheck='';
var radios = document.getElementsByName('keyword_checkgroup');
	for(var i = 0; i < radios.length; i++)
	{
		if (radios[i].checked==1){
		if (radios[i].value =='All Regions'){
		keycheck=keycheck+"Fraser~Interior~Northern~Vancouver Coastal~Vancouver Island~";
		}else{
		keycheck=keycheck+radios[i].value+"~";
		}
		}
		
	}
window.location=url+"keyword="+keycheck;
} 

function clearChoices()
{
var radios = document.getElementsByName('keyword_checkgroup');
	for(var i = 0; i < radios.length; i++)
	{
		if (radios[i].checked==1){
		radios[i].checked=false;
		}
		
	}
} 