based on moriq.tdiary.net/20070209.html#p01 by moriq <moriq@moriq.com>
cookie support detection inspired by takai recompile.net/
[Validate]