UnescapeEUCJP=function(str){
	return str.replace(/(%A[1-9A-F]|%[B-E][0-9A-F]|%F[0-9A-E]){2}|%8E%(A[1-9A-F]|[B-D][0-9A-F])|%[0-7][0-9A-F]/ig,function(s){
		var c=parseInt(s.substring(1),16);
		return c<161?String.fromCharCode(c<128?c:parseInt(s.substring(4),16)+65216):JCT8836.charAt((c-161)*94+parseInt(s.substring(4),16)-161)
	})
};

EscapeUTF8=function(str){
	return str.replace(/[^*+.-9A-Z_a-z-]/g,function(s){
		var c=s.charCodeAt(0);
		return (c<16?"%0"+c.toString(16):c<128?"%"+c.toString(16):c<2048?"%"+(c>>6|192).toString(16)+"%"+(c&63|128).toString(16):"%"+(c>>12|224).toString(16)+"%"+(c>>6&63|128).toString(16)+"%"+(c&63|128).toString(16)).toUpperCase()
	})
};
EscapeUTF8b=function(str){
	return str.replace(/[^*+.-9A-Z_a-z-]/g,function(s){
		var c=s.charCodeAt(0);
		return (c<16?"%250"+c.toString(16):c<128?"%25"+c.toString(16):c<2048?"%25"+(c>>6|192).toString(16)+"%25"+(c&63|128).toString(16):"%25"+(c>>12|224).toString(16)+"%25"+(c>>6&63|128).toString(16)+"%25"+(c&63|128).toString(16)).toUpperCase()
	})
};
EscapeEUCJP=function(str){
	return str.replace(/[^*+.-9A-Z_a-z-]/g,function(s){
		var c=s.charCodeAt(0);
		return (c<128?(c<16?"%0":"%")+c.toString(16):65376<c&&c<65440?"%8E%"+(c-65216).toString(16):(c=JCT8836.indexOf(s))<0?"%A1%A6":"%"+((c-(c%=94))/94+161).toString(16)+"%"+(c+161).toString(16)).toUpperCase()
	})
};
UnescapeUTF8=function(str){
	return str.replace(/%(E(0%[AB]|[1-CEF]%[89AB]|D%[89])[0-9A-F]|C[2-9A-F]|D[0-9A-F])%[89AB][0-9A-F]|%[0-7][0-9A-F]/ig,function(s){
		var c=parseInt(s.substring(1),16);
		return String.fromCharCode(c<128?c:c<224?(c&31)<<6|parseInt(s.substring(4),16)&63:((c&15)<<6|parseInt(s.substring(4),16)&63)<<6|parseInt(s.substring(7),16)&63)
	})
};
function chichikansu(t,b,w) {
chichi = ( b * b - w  ) / t;
	if (chichi < 30) {
	    hantei = "無乳"
	} else if (chichi < 38) {
	    hantei = "微乳"
	} else if (chichi < 45) {
	    hantei = ""
	} else if (chichi < 55) {
	    hantei = "巨乳"
	} else if (chichi < 65) {
	    hantei = "爆乳"
	} else if (chichi < 70) {
	    hantei = "超乳"
	} else {
	    hantei = "計算不能"
	}
document.write( hantei );
}
function GetAge(mydate) {
var sta = new Date(mydate);
var now = new Date();
var check1 = (now.getMonth()- sta.getMonth());
var check2 = (now.getDate() - sta.getDate());
var sta_year = (sta.getYear());
var now_year = (now.getYear());
if(sta_year < 2000){sta_year = sta_year + 1900};
if(now_year < 2000){now_year = now_year + 1900};
if(check1 > 0){
var add = 1
}else{
if(check1 == 0 && check2 >= 0){
var add = 1
}else{
var add = 0
}
}
var age = Math.floor((now_year - sta_year - 1) + add );
document.write(age+"歳");
}
function biko(t1,b1,w1,h1) {
chichi = ( b1 * b1 - w1  ) / t1;
	if (chichi < 30) {
	    biko1 = "無乳"
	} else if (chichi < 38) {
	    biko1 = "微乳"
	} else if (chichi < 45) {
	    biko1 = ""
	} else if (chichi < 55) {
	    biko1 = "巨乳"
	} else if (chichi < 65) {
	    biko1 = "爆乳"
	} else if (chichi < 70) {
	    biko1 = "超乳"
	} else {
	    biko1 = ""
	}
	if (t1<= 146) {
	    biko2 = "超小柄"
	} else if (t1<= 154) {
	    biko2 = "小柄"
	} else if (t1<= 162) {
	    biko2 = ""
	} else if (t1<= 170) {
	    biko2 = "長身"
	} else {
	    biko2 = "超長身"
	}
kubire =  ( b1 + h1 ) / 2  / w1;
	if (kubire < 1.25) {
	    biko3 = "かなりのずん胴"
	} else if (kubire < 1.33) {
	    biko3 = "ずん胴かも"
	} else if (kubire < 1.42) {
	    biko3 = ""
	} else if (kubire < 1.5) {
	    biko3 = "素敵なくびれ"
	} else {
	    biko3 = "最高のくびれ"
	}
	if (!(biko1 == "") && !(biko2 == "")) {
          biko4= biko2 + "で" + biko1 
	} else { 
          biko4 = biko1 +  biko2
　　　　}
 	if (!(biko4 == "") && !(biko3 == "")) {
           biko4 = biko4 + "、" + biko3 
          } else { 
           biko4 = biko4 + biko3 
           }
         if ( biko4 == "") {
           biko4 = "街の中にどこにでもいそうな女優さんです。"
         } else {
           biko4 = biko4 + "の持ち主です。"
         }
document.write( biko4 );
}
function bidders(namae) {
document.write('<form action="http://www.bidders.co.jp/dap/sv/affs?" method="POST" target="blank">');
document.write('<table width="150" height="120" cellspacing="0" cellpadding="0" border="0">');
document.write('<tr><td colspan="3" height="70" valign="top"><img src="http://www.bidders.co.jp/image/affiliate/afbnr_kbox1.gif" width="150" height="70" alt=""></td></tr>');
document.write('<tr>');
document.write('<td width="1" height="49" bgcolor="#FF7B08"><img src="http://www.bidders.co.jp/image/dot.gif" width="1" height="49" alt=""></td>');
document.write('<td width="148" align="center" bgcolor="#FFFFFF"><img src="http://www.bidders.co.jp/image/dot.gif" width="148" height="1" alt=""><br>');
document.write('<table height="45" cellspacing="0" cellpadding="0" border="0">');
document.write('<tr><td height="42" align="center">');
document.write('<input type="submit" name="submit" value="'+namae+'" class="buttonStyle"></td></tr>');
document.write('</table></td>');
document.write('<td width="1" bgcolor="#FF7B08"><img src="http://www.bidders.co.jp/image/dot.gif" width="1" height="1" alt=""></td>');
document.write('</tr>');
document.write('<tr><td colspan="3" height="1" bgcolor="#FF7B08"><img src="http://www.bidders.co.jp/image/dot.gif" width="148" height="1" alt=""></td></tr>');
document.write('</table>');
document.write('<input type="hidden" name="user_id" value="0npuZ.lCw0nUUdUUy7pa.TG--">');
document.write('<input type="hidden" name="link" value="0">');
document.write('<input type="hidden" name="seq_link_id" value="1359578">');
document.write('<input type="hidden" name="link_type" value="SE">');
document.write('<input type="hidden" name="keyword" value="'+namae+'">');
document.write('</form>');
}

function amazon(actress) {
document.write(　'<div style="font-weight: bold; margin-bottom: 4px; ">Amazon.co.jpでの'+actress+'に関する検索結果：</div>'　);
    var url = "http://webservices.amazon.co.jp/onca/xml?Service=AWSECommerceService&SubscriptionId=1CTQ65KQW4MZHVHDG582&AssociateTag=syogaisyaring-22&Operation=ItemSearch&SearchIndex=DVD&Keywords="+EscapeUTF8( actress )+"&BrowseNode=896246&ResponseGroup=Medium&page=1";
     var xml = new JKL.ParseXML( url );
     var data = xml.parse();
if ( data.ItemSearchResponse.Items.TotalResults > 0 ) {
document.write( '<a href="http://www.amazon.co.jp/exec/obidos/redirect?link_code=ur2&amp;camp=247&amp;tag=syogaisyaring-22&amp;creative=1211&amp;path=external-search%3Fsearch-type=ss%26keyword='+EscapeUTF8b( actress　)+'%26index=dvd-jp" target="amazon"><img src="http://1.dtiblog.com/d/darkzone/file/mobile_s_dvd.gif" border="0" alt="'+actress+'に関するDVDが'+data.ItemSearchResponse.Items.TotalResults+'件あります。"></a><img src="http://www.assoc-amazon.jp/e/ir?t=syogaisyaring-22&amp;l=ur2&amp;o=9" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />　');
}
    var url = "http://webservices.amazon.co.jp/onca/xml?Service=AWSECommerceService&SubscriptionId=1CTQ65KQW4MZHVHDG582&AssociateTag=syogaisyaring-22&Operation=ItemSearch&SearchIndex=VHS&Keywords="+EscapeUTF8( actress )+"&BrowseNode=10269281&ResponseGroup=Medium&page=1";
     var xml = new JKL.ParseXML( url );
     var data = xml.parse();
if ( data.ItemSearchResponse.Items.TotalResults > 0 ) {
document.write( '<a href="http://www.amazon.co.jp/exec/obidos/redirect?link_code=ur2&amp;camp=247&amp;tag=syogaisyaring-22&amp;creative=1211&amp;path=external-search%3Fsearch-type=ss%26keyword='+EscapeUTF8b( actress　)+'%26index=vhs-jp" target="amazon"><img src="http://1.dtiblog.com/d/darkzone/file/mobile_s_vhs.gif" border="0" alt="'+actress+'に関するビデオが'+data.ItemSearchResponse.Items.TotalResults+'件あります。"></a><img src="http://www.assoc-amazon.jp/e/ir?t=syogaisyaring-22&amp;l=ur2&amp;o=9" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />　');
}
    var url = "http://webservices.amazon.co.jp/onca/xml?Service=AWSECommerceService&SubscriptionId=1CTQ65KQW4MZHVHDG582&AssociateTag=syogaisyaring-22&Operation=ItemSearch&SearchIndex=Books&Keywords="+EscapeUTF8( actress )+"&BrowseNode=10667101&ResponseGroup=Medium&page=1";
     var xml = new JKL.ParseXML( url );
     var data = xml.parse();
if ( data.ItemSearchResponse.Items.TotalResults > 0 ) {
document.write( '<a href="http://www.amazon.co.jp/exec/obidos/redirect?link_code=ur2&amp;camp=247&amp;tag=syogaisyaring-22&amp;creative=1211&amp;path=external-search%3Fsearch-type=ss%26keyword='+EscapeUTF8b( actress　)+'%26index=books-jp" target="amazon"><img src="http://1.dtiblog.com/d/darkzone/file/mobile_s_book.gif" border="0" alt="'+actress+'に関する書籍が'+data.ItemSearchResponse.Items.TotalResults+'件あります。"></a><img src="http://www.assoc-amazon.jp/e/ir?t=syogaisyaring-22&amp;l=ur2&amp;o=9" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />　');
}

}
