function wng() {
	alert("You are now leaving the website of the Department of Infrastructure, Transport,\nRegional Development and Local Government.\nThe website you are entering is not maintained\nnor funded by the Australian Government.");
}

function wnggov() {
	alert("You are now leaving the website of the Department of Infrastructure, Transport,\nRegional Development and Local Government.");
}

function wngmin() {
	alert("You are now entering the website of the\nMinisters and the Parliamentary Secretary\nfor the Department of Infrastructure, Transport,\nRegional Development and Local Government.");
}

function dotars() {}

function search() {
	var objSearchElement = document.getElementsByTagName('INPUT')[0];
	if (objSearchElement) {

		if (objSearchElement.value == '') {
			alert('Please enter a search value.');
		} else {
		window.location=('http://search.infrastructure.gov.au/search/search.cgi?collection=Infrastructure&form=simple_infrastructure&query='+objSearchElement.value);
		}

	}
}
var searchPage = 0;

function keypress(event) {
	var keycode;
	if (window.event) {
		keycode = window.event.keyCode;
	} else {
		if (event) {
			keycode = event.which;
		}
	}

	if (keycode == 13) {
		search();
		return false;
	}
}
