function clearInput(obj) {
	// if test is 'type ' then assume it's default text
	var patten = /^type search\s/;
	if(obj.value.match(patten)) {
		obj.value='';
	}
	return;
}

function submitLibrarySearch()
{
    // GMP search
    if (document.frmSearch.searchArea[0].checked === true) {
        frm = document.frmSearch;
    }
    frm.submit();
}

function goTailings()
{
    document.location.href = 'http://www.goodpracticemining.com/tailings/search.php';
}
