//********************************************************************
// jsfunc.js	表示コントロール
//	<script type="text/javascript" src="../jsfunc.js"></script>
//********************************************************************

//------------------------------------------------
// WUpdMsg	New,Upアイコン表示
//	指定日(yyyy/mm/ddからn日(inTerm)間のみNew,Upアイコン表示
//	WUpdMsg(2003,2,15,'upd',10,'y',0);
//		inType	アイコン種別	new / upd
//		inDsp	日付表示		y:表示 n:非表示
//		inlvl	imgへの階層
//------------------------------------------------
function WUpdMsg( inYear , inMonth , inDay , inType , inTerm , inDsp  , inlvl )
{  var wToday    =  new Date();
   var wUpdDate  =  new Date(inYear , inMonth - 1 , inDay);
   var wPasDays  =  ( wToday.getTime() - wUpdDate.getTime() ) / ( 24 * 60 * 60 * 1000 );

   //imgへの階層設定
   if (inlvl == 0){
      var imgPass   =   'img/';
   } else {
      var imgPass   =   '../img/';
   }

   if (wPasDays < inTerm){
      var wMsg   =   '<span class=updcol>　';
      if (inType == 'new'){
         wMsg  =  wMsg + '<img src="'  +  imgPass  +  'new.gif" alt="new" border="0">';
      } else {
         wMsg  =  wMsg + '<img src="'  +  imgPass  +  'upd.gif" alt="update" border="0">';
      }

      inDsp  =  inDsp.toLowerCase();
      if (inDsp == 'y'){
         wMsg  =  wMsg  + " (" + inYear + "/" + inMonth + "/" + inDay + ")" ;
      }

      wMsg  =  wMsg + '</span>';
      document.write( wMsg );
   }
}


function acccnter(  )
{  var wTag  =  '<table border="0" width="100" cellspacing="0" cellpadding="0">';
   wTag   = wTag + '<tr><th valign="bottom">';
   document.write( wTag );

   var data, p;
   var agt=navigator.userAgent.toLowerCase();
   p='http';
   if((location.href.substr(0,6)=='https:')||(location.href.substr(0,6)=='HTTPS:')) {p='https';}
   data = '&r=' + escape(document.referrer) + '&n=' + escape(navigator.userAgent) + '&p=' + escape(navigator.userAgent) + '&g=' + escape(document.location.href);
   if(navigator.userAgent.substring(0,1)>'3') {data = data + '&sd=' + screen.colorDepth + '&sw=' + escape(screen.width+ 'x'+screen.height)};document.write('<a href="http://www.counter-hosting.com" target="_blank" >');
   document.write('<img border=0 hspace=0 '+'vspace=0 src="http://www.counter-hosting.com/counter.php?i=6068' + data + '">');
   document.write('</a>');

   wTag   = '</th></tr><tr><td width="100" align="middle" valign="top">';
   wTag   = wTag + '<a href="http://www.counter-hosting.com/" target="_blank"><img src="http://www.counter-hosting.com/b1.gif" alt="ホスティングサービス" border="0"></a>';
   wTag   = wTag + '<a target="_blank" href="http://www.biyo-search.com/79/index.html"><img src="http://www.counter-hosting.com/beauty-logo.gif" alt="三重 二重まぶた" border="0"></a>';
   wTag   = wTag + '<a href="http://www.monthly-mansion.com/" target="_blank"><img src="http://www.counter-hosting.com/banner.gif" alt="マンスリーマンション" border="0"></a>';
   wTag   = wTag + '</td></tr></table>';
   document.write( wTag );
}
