﻿var strin;
var strout;

rpd = document.referrer;
strin = document.URL;
if (strin.indexOf("http://archaeopteryx.rgr.jp/index.html") >= 0) {
	location.href="http://archaeopteryx.rgr.jp/?r=" + rpd;
}
//else {
//	IntRet = CheckAddress(document.URL);
//	if ( IntRet > 0 ) {
//		strout = '';
//		strout = strout + '<B>【お知らせ】</B><BR>';
//		strout = strout + '旧URLからの自動転送を使ってここを訪問された場合、ブラウザの「戻る」ボタンを押しても元のページに戻れないケースがあるようです。<BR>';
//		strout = strout + '<B>ブラウザの「戻る」ボタンが効かない場合はこちらのリンクで戻ってください。→<A HREF="javascript:history.go(-2)">[２つ前のページに戻る]</A></B><BR><BR> ';
//		document.write(strout);
//	}
//}

function CheckAddress(rp) {
    IntRet = 0;
    if ( rp.indexOf("90098478.html") >= 0 ) {IntRet = 1;}
    else if ( rp.indexOf("0000123745/90098478") >= 0 ) {IntRet = 1;}
    else if ( rp.indexOf("search.yahoo.co.jp") >= 0 ) {IntRet = 2;}
    else if ( rp.indexOf("bookmarks.yahoo.co.jp") >= 0 ) {IntRet = 2;}
    else if ( rp.indexOf("google.co.jp") >= 0 ) {IntRet = 2;}
    else if ( rp.indexOf("www.google.com/search") >= 0 ) {IntRet = 2;}
    else if ( rp.indexOf("search.live.com") >= 0 ) {IntRet = 2;}
    return IntRet;
}

