// JavaScript Document
/*--------------------------------------------------
  FileName : wadastumi.js
  Author   : YamatoKakeru ((c) WADATSUMI Anchorage)
  
  It is the group of functions to use for general 
  purposes at the site.
--------------------------------------------------*/

// Added trim method at String class
String.prototype.trim = function() {
	return this.replace(/^[ ]+|[ ]+$/g, '');
}

/*--------------------------------------------------
	Function : from 2ch or partys, directly, link prevention
	Argument : strRef : document refrerrer
--------------------------------------------------*/
function RemoveDemon(strRef){
	var reff = strRef;
	var JmpURI = 'http://www.mod.go.jp/msdf/';
	
	if(reff.indexOf('2ch.net') != -1){
		location.replace(JmpURI);
	}
	if(reff.indexOf('ime.nu') != -1){
		location.replace(JmpURI);
	}
	if(reff.indexOf('ime.st') != -1){
		location.replace(JmpURI);
	}
}
