function goto_URL(object) 
	{
	window.location.href = object.options[object.selectedIndex].value;
	return false;
	}

function newwindow(page)
	{
	window.open(page,'definitions','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no, resizable=no,width=500,height=300')
	}

function viewsample(page)
	{
	window.open(page,'sample','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no, resizable=no,width=460,height=580')
	}

function CreateQuery(c)
		{		
		var x = getvalue('IW_FIELD_INPUT')		
		var y = getvalue('IW_FIELD_TEXT')
		
		getElement('IW_FIELD_TEXT').value = y +  x  + ' ' + c + ' ';
		getElement('IW_FIELD_INPUT').value ='';
		getElement('IW_FIELD_INPUT').focus()
		}		

function getElement(id) 
		{ 
		if (document.getElementById)
		{return document.getElementById(id)}
		else 
		{return eval('document.all.' + id)};
		}
		
function getvalue(id) 
		{ 
		if (document.getElementById)
		{return document.getElementById(id).value}
		else 
		{return eval('document.all.' + id)};
		} 
			
/*	
		var x = document.getElementById('IW_FIELD_INPUT').value;
		document.getElementById('IW_FIELD_INPUT').value = '';
		var y = document.getElementById('IW_FIELD_TEXT').value;
		document.getElementById('IW_FIELD_TEXT').value = y +  x  + ' ' + c + ' ';
		document.getElementById('IW_FIELD_INPUT').focus();
		
		
function CreateQuery(c)
		{
		var x = document.query.IW_FIELD_INPUT.value;
		document.query.IW_FIELD_INPUT.value = '';
		var y = document.query.IW_FIELD_TEXT.value;
		document.query.IW_FIELD_TEXT.value = y +  x  + ' ' + c + ' ';
		document.query.IW_FIELD_INPUT.focus();
		}
*/

/*
function OnChange(dropdown, section, mypage)
{
	alert('you are here');
	var myindex  = dropdown.selectedIndex
	var SelValue = dropdown.options[myindex].value
	var baseURL  = 'adr_template.aspx?p=' + mypage + '&section=' + section + '&v=' + SelValue
	top.location.href = baseURL;
 
	return true;
}
*/

function addbookmark()
{
bookmarkurl=location.href
bookmarktitle="Legislative Assembly of Alberta - MLA report"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}