var query = location.href;

if(query.indexOf('?') == -1) {

	query = "AV_GB_ID=" + escape("http://" + location.host + location.pathname);

} else {

	query = query.substring((query.indexOf('?')) + 1) + "&AV_GB_ID=" + escape("http://" + location.host + location.pathname);

}

if(typeof(av_gbook_lang) == "undefined") {
	var av_gbook_lang = "it";
}

document.writeln('<s'+'cript type="text/javascript" src="http://it.altervista.org/service/guestbook_js.php?' + query + "&lang=" + av_gbook_lang + ' "></s'+'cript>');

