//tabeble.coinos.jp/test/includetc/
// 文字コードUTF-8
function KagoIreru(formID){
	document.getElementById(formID).submit();
}
function grab(url, resultID) {
	HTML_AJAX.grab(url,
				   function(result){
					   document.getElementById(resultID).innerHTML = result;
					});
}
/* 成分名ナビゲーションメニュー用 */
function MenuOn(x){ 
	obj=document.getElementById("subMenu"+x).style.visibility = 'visible';
}
function MenuOff(x){ 
	obj=document.getElementById("subMenu"+x).style.visibility = 'hidden';
}
/* ブックマーク他 */
function TwitterContrib(URL) {
	window.open('http://twitter.com/home?status='+encodeURIComponent(URL),'_blank');
}
function YahooBookmark(TITLE,URL) {
	window.open('http://bookmarks.yahoo.co.jp/bookmarklet/showpopup?t='+encodeURIComponent(TITLE)+'&amp;u='+encodeURIComponent(URL)+'&amp;ei=UTF-8','_blank','width=550,height=480,left=100,top=50,scrollbars=1,resizable=1',0);
}
function GoogleBookmark(TITLE,URL) {
	window.open('http://www.google.com/bookmarks/mark?op=edit&amp;bkmk='+encodeURIComponent(URL)+'&amp;title='+encodeURIComponent(TITLE),'_blank');
}
function HatenaBookmark(URL) {
	window.open('http://b.hatena.ne.jp/append?'+URL,'_blank');
}
function LivedoorClip(TITLE,URL) {
	window.open('http://clip.livedoor.com/redirect?link='+URL+'&amp;title='+encodeURIComponent(TITLE)+'&amp;ie=UTF-8','_blank');
}
function NiftyClip(TITLE,URL) {
	window.open('http://clip.nifty.com/create?url='+encodeURIComponent(URL)+'&amp;title='+encodeURIComponent(TITLE),'_blank');
}
function BuzzurlBookmark(URL) {
	window.open('http://buzzurl.jp/entry/'+URL,'_blank');
}
function FC2Bookmark(TITLE,URL) {
	window.open('http://bookmark.fc2.com/user/post?url='+encodeURIComponent(URL)+'&title='+encodeURIComponent(TITLE),'_blank');
}
function AddBookmark(URL,TITLE) {
	if(window.sidebar){ 
        window.sidebar.addPanel(TITLE, URL,""); 
    }
	else if(navigator.appName.charAt(0)=="M"){ 
        window.external.AddFavorite(URL, TITLE);
    }
	else if(window.opera && window.print){ 
        return true; 
    }
}
