function change_lang(id_lang,url) {

	//alert(id_lang);

	self.location.href="http://"+url+"&lang="+id_lang;

}
function change_page_lang(id_lang,url) {

	//alert(url);

	self.location.href="http://"+url+"&id_lang="+id_lang+"&action=form";

}

function set_search_target(target) {

	///alert(target);
	document.search_form.action = target;
}

function set_style(styl,id_elementu) {

	//alert(styl);
	
	document.getElementById(id_elementu).className= styl;

}

function set_form_method(form_name,method) {
	
	///alert(document.forms['search_form'].method);
	document.forms['search_form'].method = method;
	///document.e.method = method;
	///alert(document.form_name.method);

}

function change_input_name_by_id(id,name) {

	document.getElementById(id).name= name;

}

function set_value(value) {

	document.search_form.n_search.value = value;

}

function search_engine(type) {

	if(type=="uwm_pracownicy") {
	
		set_search_target('http://www.uwm.edu.pl/?q=search/employees/'+document.getElementById('szukaj_input_text').value); 
	
	}
	else if(type=="uwm") {
	
		set_search_target('http://www.uwm.edu.pl/?q=search/node/'+document.getElementById('szukaj_input_text').value);
	
	}
	
	else if(type=="internet") {
	
		set_search_target('http://www.google.com/custom?hl=pl&cof=L%3Ahttp%3A%2F%2Fstudenciak2.man.olsztyn.pl%2F_gfx%2Fstudenciak_logo.jpg&domains=student.man.olsztyn.pl');
	
	}
	else if(type=="studenciak") {
	
		set_search_target('http://www.google.com/custom?hl=pl&cof=L%3Ahttp%3A%2F%2Fstudenciak2.man.olsztyn.pl%2F_gfx%2Fstudenciak_logo.jpg&domains=student.man.olsztyn.pl');
	
	}
	else if(type=="forum") {
	
		set_search_target('http://student.man.olsztyn.pl/forum2/index.php?action=search2'); 
	
	}	
	////alert(document.search_form.action);
	
	
}
var pozwalam = false;
function wyslij() {

	pozwalam = true;
	document.getElementById('formularz').submit();

}
function dodaj_komentarz(){
if (pozwalam == true) return true;
return false;
}