function showhide(xxx){
	if (document.getElementById(xxx).style.display=="none"){
		document.getElementById(xxx).style.display=""; // block or table-row
	}else{
		document.getElementById(xxx).style.display="none";
	}
}
function show_div(xxx){
	document.getElementById(xxx).style.display=""; // block
}
function hide_div(xxx){
	document.getElementById(xxx).style.display="none";
}
function focus_by_id(xxx){
	document.getElementById(xxx).focus();
}
function wr_send_data(url){
	var wr_script_object=document.createElement("script");
	wr_script_object.src=url+'&js_rand='+Math.random();
	document.body.appendChild(wr_script_object);
	return false;
}
function htmlspecialchars(html) { 
      html = html.replace(/&/g, "&amp;"); 
      html = html.replace(/</g, "&lt;"); 
      html = html.replace(/>/g, "&gt;"); 
      html = html.replace(/"/g, "&quot;"); 
      return html; 
}
function trim(s){
	s = s.replace( /^\s+/g, '');
	return s.replace( /\s+$/g, '');
}
function str_replace(subject, search, replace) {
    return subject.split(search).join(replace);
}
function del_quot(html) { 
      html = html.replace(/"/g, ''); 
	  html = html.replace(/'/g, ''); 
      return html; 
}

function is_ok_int_val(str) {
	return (str.search(/\d/)>=0 && str.search(/\D/)<0);
}
function gebi(xxx){
	return document.getElementById(xxx);
}