<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function search_clear() {
	document.storeAreaFormName.p_area.selectedIndex="";
	document.storeAreaFormName.p_areaDetail.value="";
	document.storeAreaFormName.search_btn.focus();
	document.storeAreaFormName.search_btn.click();
}

function create_url(URL){
	var today = new Date();
	var year	= today.getFullYear();	// 年
	var month	= today.getMonth()+1;		// 月
	var date	= today.getDate();			// 日
	var hour	= today.getHours();			// 時
	var minute	= today.getMinutes();		// 分
	var second	= today.getSeconds();		// 秒
	document.write( "<a href=" + URL + "?" + year + month + date + hour + minute + second + " target=mainFrame>");
}


function create_calender(){
	var today = new Date();
	var year	= today.getFullYear();	// 年
	var month	= today.getMonth()+1;		// 月
	var date	= today.getDate();			// 日
	var hour	= today.getHours();			// 時
	var minute	= today.getMinutes();		// 分
	var second	= today.getSeconds();		// 秒
	document.write( "|| " + year + "." + month + "月号 ||" );
}

function rand(){
	var today = new Date();
	var year	= today.getFullYear();	// 年
	var month	= today.getMonth()+1;		// 月
	var date	= today.getDate();			// 日
	var hour	= today.getHours();			// 時
	var minute	= today.getMinutes();		// 分
	var second	= today.getSeconds();		// 秒
	return "?" + year + month + date + hour + minute + second;
}

function second_param(){
	var today = new Date();
	var year	= today.getFullYear();	// 年
	var month	= today.getMonth()+1;		// 月
	var date	= today.getDate();			// 日
	var hour	= today.getHours();			// 時
	var minute	= today.getMinutes();		// 分
	var second	= today.getSeconds();		// 秒
	return "&newTime" + year + month + date + hour + minute + second;
}

/* JSCGI */

function js_deli_news_index(no){
	document.write('<script src="http://www.fuzoku-chiba49.com/cgibin/dummy/sub_new_delilist.cgi?category=' + no + second_param() + '"></script>');
}

function js_girls_news_toppage(no){
	document.write('<script src="http://www.fuzoku-chiba49.com/cgibin/dummy/sub_new_girls.cgi?category=' + no + second_param() + '"></script>');
}

function js_deli_news_toppage(no){
	document.write('<script src="http://www.fuzoku-chiba49.com/cgibin/dummy/sub_new_delilist_toppage.cgi?category=' + no + second_param() + '"></script>');
}

function js_deli_area_search(no){
	document.write('<script src="http://www.fuzoku-chiba49.com/cgibin/dummy/sub_area_derilist.cgi?category=' + no + second_param() + '"></script>');
}

function js_deli_news_discount(no){
	document.write('<script src="http://www.fuzoku-chiba49.com/cgibin/dummy/sub_deli_discount_news.cgi?category=' + no + second_param() + '"></script>');
}

function js_newgirls_monthlist(no){
	document.write('<script src="http://www.fuzoku-chiba49.com/cgibin/dummy/sub_newgirls_monthlist.cgi?category=' + no + second_param() + '"></script>');
}

function js_girls_worktime(no){
	document.write('<script src="http://www.fuzoku-chiba49.com/cgibin/dummy/sub_girls_worktime.cgi?category=' + no + second_param() + '"></script>');
}

function js_gravure_list(no){
	document.write('<script src="http://www.fuzoku-chiba49.com/cgibin/dummy/sub_gravure_list.cgi?category=' + no + second_param() + '"></script>');
}

function access_ranking_top10(){
	document.write('<script src="http://www.fuzoku49.com/cgibin/z_counter/access.js' + rand() + '"></script>');
}

function jk_tools(){
	document.write('<script src="http://www.fuzoku-chiba49.com/cgibin/dummy/sub_jk_tools.cgi' + rand() + '"></script>');
}

function accesslog(){
	document.write('<script src="http://www.fuzoku49.com/cgibin/accesslog.cgi' + rand() + '"></script>');
}

function create_newyear(){
	var today = new Date();
	var year	= today.getFullYear();
	document.write( "" + year + "" );
}

/*//////////// フルスクリ−ン幅get用指定用関数   UseFree
========================================================
 Win  n4 n6 moz e4 e5 e6,
 Mac  n4 n6 moz e4.5 e5,
 Linux n4 n6 moz         
========================================================
 ルスクリ−ン幅をピクセル単位で取得する
 Support http://game.gr.jp/js/
=======================================================*/

function getScreenWIDTH(){
	if(!!window.screen)
		return screen.width        //N4,N6,Moz,IE,共用
	else
		return null                //上記以外
}
function getScreenHEIGHT(){
	if(!!window.screen)
		return screen.height       //N4,N6,Moz,IE,共用
	else
		return null                //上記以外
}

/*//////////// フルスクリ−ン幅get用指定用関数ここまで */
var sw1; var sw2; var pitch1; var pitch2; var str;
function PopWindow(Aurl,Aname,Awidth,Aheight){
	sw1 = 0; sw2 = 0; pitch1 = 14; pitch2 = 30; pitch3 = 24;
	getSW = getScreenWIDTH();
	getSH = getScreenHEIGHT() - pitch2;
	if(getSW < (Awidth - 0) + (pitch1 * 2)){
		Pwidth = getSW - pitch1; sw1 = 1;
		Pwscr = 0;
	} else {
		Pwidth = (Awidth - 0) + pitch3 ;
		Pwscr = (getSW - pitch1 - Pwidth) / 2;
	}
	if(getSH < (Aheight - 0) + (pitch2 * 2)){
		Pheight = getSH - pitch2; sw2 = 1;
		Phscr = 0;
	} else {
		Pheight = (Aheight - 0) + pitch3 ;
		Phscr = (getSH - pitch2 - Pheight)/ 2 ;
	}
	if(!sw1 && sw2){
		Pwidth = (Pwidth - 0) + pitch1;
		Pwscr = (getSW - pitch1 - Pwidth) / 2;
	}
	if(sw1 && !sw2){
		Pheight = (Pheight - 0) + pitch2 / 2;
		Phscr = (getSH - pitch2 - Pheight)/ 2 ;
	}
	var pic_popup = 1;
	if ( pic_popup == 2 ){
		str = ",resizable";
	} else {
		str = ",left=" + Pwscr + ",top=" + Phscr + ",screenX=0,screenY=0,resizable";
	}
	if(sw1 || sw2){
		str += ",scrollbars";
	}
	if(Pwidth < 40){Pwidth = 40}
	if(Pheight < 80){Pheight = 80}
	Astr = "width=" + Pwidth + ",height=" + Pheight + str;
	subwin = window.open(Aurl,'',Astr);
}

//-->

