var gooid = ""; var match = location.href.match(/http:\/\/.*.goo\.ne\.jp\/([^/.]+)/); if (match && match[1]) { gooid = match[1]; } var s = '
'; document.write(s);