function bookmark(str) {
	var url
	var current_url = encodeURIComponent(document.URL)
	if(str == 'hatena_entry') {
		url = 'http://b.hatena.ne.jp/entry/' + current_url
	} else if(str == 'hatena_append') {
		url = 'http://b.hatena.ne.jp/append?' + current_url
	} else if(str == 'delicious_entry') {
		url = 'http://del.icio.us/post?v=2&amp;url=' + current_url + '&amp;title=' + encodeURIComponent(document.title);
	} else {
		return false;
	}
	document.location = url
	return false
}

