function getde () {
	return country;
}

function chkde () {
	// country
	var c = getde();
	if (c=='japan') {
		return 1;
	} else {
		// ip table
		var ip = new Array (
			'^204\.128\.192\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$',
			'^203\.174\.70\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$',
			'^208\.246\.35\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$',
			'^192\.195\.64\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$',
			'^192\.195\.66\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$',
			'^199\.181\.130\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$',
			'^61\.197\.245\.(2(3[2-9]|40))$',
			'^211\.125\.60\.243$'
		);
		
		for (var i=0; i<ip.length; i++) {
			var re = request_remoteaddr.match(new RegExp(ip[i], "gi"));
			if (re) return 1;
		}
		return -2;
	}
}
