/*スパムメール対策*/
<!--
function vspam(im,tsg) {
  maddress = "mailto:" + im + "@" + tsg;
  window.location.href = maddress;
}
//-->

function guidebook()
{
   adWindow=window.open('http://food-673.jp/guide/guidebook.html','newWin','width=900,height=1200,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function guidebook2()
{
   adWindow=window.open('guidebook.html','newWin4','width=900,height=1200,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function guidebookDemo()
{
   adWindow=window.open('http://food-673.jp/guide/guidebook_demo.html','newWin','width=900,height=1200,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function apart()
{
   adWindow=window.open('../apart.html','newWin2','width=800,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function ao()
{
   adWindow=window.open('http://food-673.jp/guide/ao.html','newWin', 'width=900,height=1200,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function ao2()
{
   adWindow=window.open('ao.html','newWin3','width=900,height=1200,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function chefSkil()
{
   adWindow=window.open('skillist_1.html','newWin','width=620,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function healthySkil()
{
   adWindow=window.open('skillist_2.html','newWin','width=620,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function cafeSkil()
{
   adWindow=window.open('skillist_3.html','newWin','width=620,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function patiSkil()
{
   adWindow=window.open('skillist_4.html','newWin','width=620,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function schedulePop()
{
   adWindow=window.open('schedule.html','newWin','width=1200,height=850,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function groupPop()
{
   adWindow=window.open('../group.html','newWin','width=860,height=700,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function answerPop()
{
   adWindow=window.open('answer.html','newWin','width=620,height=670,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function requestPop()
{
   adWindow=window.open('../request.html','newWin','width=620,height=670,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function mapPop()
{
   adWindow=window.open('map_l.html','newWin','width=1040,height=840,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function interviewPop()
{
   adWindow=window.open('interview.html','newWin','width=880,height=800,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function worksPop()
{
   adWindow=window.open('works.html','newWin','width=780,height=800,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function worksPop2009()
{
   adWindow=window.open('works2009.html','newWin','width=780,height=800,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}


function busTourPop()
{
   adWindow=window.open('https://wwwwwh-nsg.com/bustour/','newWin','width=710,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function openWin(theURL,winName,features) { //v2.0
	newwin=window.open(theURL,winName,features);
	newwin.focus();
}

function mail()
{
   adWindow=window.open('mail.html','newWin','width=660,height=450,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}

function festa(){
	var st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 880;
	var wy = screen.height - (screen.height*0.15);
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("popup/festa100327/index.html","festaWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

var nw="";
function loadTosubwin(url){
    if( sbwin_closed(nw) ) {
        nw = window.open(url, 'win',"width=550,height=360");
    } else {
        nw.location.href=url;
    }
    nw.focus();
}

//子ウインドウ有無確認関数
function sbwin_closed(winVar) {
    var ua = navigator.userAgent;
    if( !winVar )
        if( ua.indexOf('MSIE 4')!=-1 && ua.indexOf('Win')!=-1 ) 
            return winVar.closed
        else return typeof winVar.document != 'object'
    else return true
}


/*日時指定*/
function shiftDay(ymd,limit) {
  today=new Date();
  shift=new Date(ymd);
  if (Math.floor((today-shift)/1000/60/60/24)>limit) {
    document.getElementById("dayshift0").className='disnone';
		document.getElementById("dayshift1").className='disshow';
  }
}


function noguchiNotHara(url,wx,wy,wName){
	st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	if(wy == ''){
		wy = screen.height - (screen.height*0.15);
	}
	x = (screen.width  - wx) / 2;
	y = ((screen.height - wy) / 2) - 30;
	newwin = window.open(url,wName,"left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}