function lokReset(){
	f = document.forms[0];
	if(f.strFreeText.value === "Sök annons") {
		f.strFreeText.value = "";
	}
}

function lokSE(){
args = arguments;
    e = args[0];
    if(e===null) {
        e = window.event;
    }
    if (e && e.keyCode === 13) {
        lokusSubmit();
    } else {
        return false;
    }

}

function lokusSubmit(){
	f = document.forms[0];
	var strSearchPage = 'Exp_SearchStart.asp';
	var strCounty = 'Gotland'; // Ln 
	var iCustomerType = '-1'; // 0 = fretag , 1 privat och -1 alla
	//lokusSearchfunc();
	f.NewUrl.value = strSearchPage + '?strCounty=' + strCounty + '&iCustomerType=' + iCustomerType + '&strFreeText=' + f.strFreeText.value;
	//url = "http://www.nt.se/GEN_LOK_Start.asp?NewUrl="+ f.NewUrl.value;
	url = "/lokus/default.aspx?strFreeText=" + f.strFreeText.value + "&iCustomerType=" + iCustomerType + "&strCounty=" + strCounty;
	location.href = url;	    
}


function gotoLokusPage(){
	//alert(document.getElementById("LokusSelect")[document.getElementById("LokusSelect").selectedIndex].value);
	if(document.getElementById("LokusSelect").selectedIndex > 0){
		document.location.href = document.getElementById("LokusSelect")[document.getElementById("LokusSelect").selectedIndex].value;
	}
}