//別ウィンドウオープン

function wopen4(imgName){ window.open(imgName,"WindowOpen4","toolbar=no,location=no,directories=no,starus=yes,menubar=no,scrollbars=no,resizable=no,width=432,height=700") }


//newアイコン表示

var pass = 7;
var icon = ' <img src="http://jevic.co.jp/images/icn_new.gif" width="28" height="11" alt="NEW" />';
var today = new Date();
var upday = new Date();

function pubdate(y,m,d) {
   upday.setFullYear(y);
   m = m - 1;
   upday.setMonth(m);
   upday.setDate(d);
   difference = today.getTime() - upday.getTime();
   difference = Math.floor(difference / (1000 * 60 * 60 * 24));
   if (difference < pass) {
      document.write(icon);
   }
} 


//タブ切り替えCSSローダー
(function(){

/**
 * CSSLoader
 */
	function CSSLoader(filePath,media)
	{
		document.write('<link rel="stylesheet" type="text/css" media="'+media+'" href="'+ filePath + '" />');
	}

/* load CSS for JS */
CSSLoader("http://jevic.co.jp/css/forjs.css","all");

})();


//入力フォームの初期値クリア
$(function(){
var defaultc = '#59606B'; //初期値の文字色
var focusc = '#59606B'; //通常入力時の文字色
$('textarea,input[type="text"]').css('color',defaultc).focus(function(){
	if($(this).val() == this.defaultValue){
		$(this).val('').css('color', focusc);
	}
	})
	.blur(function(){
		if($(this).val() == this.defaultValue | $(this).val() == ''){
		$(this).val(this.defaultValue).css('color',defaultc);
	};
	});
});