function whenLoading(){
	var e = document.getElementById('replaceme'); 
	e.innerHTML = "<select style=\"width: 112px\"><option>Proszę czekać ...</option></select>";
}

function whenLoaded(){
	var e = document.getElementById('replaceme'); 
	e.innerHTML = "<select style=\"width: 112px\"><option>Proszę czekać ...</option></select>";
}
		
function lt(inst){
	var selObj1 = document.getElementById('region');
	var selIndex1 = selObj1.selectedIndex;
	ajax.setVar("home", 1);	
	ajax.setVar("inst", inst);		
	ajax.setVar("region", selObj1.options[selIndex1].value);				
	ajax.requestFile = "/_ajax/home.php";
	ajax.method = "POST";
	ajax.element = 'replaceme';
	ajax.onLoading = whenLoading;
	ajax.onLoaded = whenLoaded; 
	ajax.onInteractive = whenLoading;
	ajax.runAJAX();
}

function checklof(){

	if(document.getElementById('dlogin').value=="" && document.getElementById('dpass').value==""){
		document.getElementById('dlogin').value = "wpisz login";
		document.getElementById('dpass').value = "wpisz hasło";
	}

}