
/* スパムメール対策 */
<!--
function vspam(im,domain) {
  maddress = "mailto:" + im + "@" + domain;
  window.location.href = maddress;
}
// -->


function FocusImage(sImg, sImgClass)
{
	aHtml = new Array();
	var iCnt=0;
	var iTmpCnt=0;
	var sNavigator = GetNavigator();
	wImg = window.open('', '_blank');
	
	if(sNavigator == "Safari"){
		
		// ?E?B???h?E?T?C?Y??ｾ・???
		iWindowHeight = wImg.innerHeight;
		
	} else {
		// ?E?B???h?E?T?C?Y??100%?????
		iWindowHeight = "100%";
	}
		
    aHtml[0] = "<html><head><title>focus</title>";
    aHtml[1] = "<meta http-equiv='Content-Type' content='text/html;charset=Shift_JIS'>";
    aHtml[2] = "<link rel='stylesheet' href='' type='text/css'>";
    aHtml[3] = "</head><body scroll='auto' topmargin='0' leftmargin='0' marginheight='0' marginwidth='0'>";
    aHtml[4] = "<table border='0' cellpadding='0' cellspacing='0' width='100%' height='" + iWindowHeight + "'>";
    aHtml[5] = "<tr><td align='center' valign='center' width='100%' height='" + iWindowHeight + "'>";
    aHtml[6] = "<table border='0' cellpadding=0 cellspacing=0><tr>";
    aHtml[7] = "<td align='center' nowrap><a href='javascript:window.close()' title='?E?B???h?E??????'><img src='" + sImg + "' class='" + sImgClass + "' border=0></a></td>";
    aHtml[8] = "</tr></table></td></tr></table></body></html>";
	
	for(iCnt=0; iCnt < 9; iCnt++){
		wImg.document.write(aHtml[iCnt]);
	}
}



function GetNavigator(){
	if(navigator.IBM_HPR) return "HomepageReader";
	
	aName  = navigator.userAgent.toUpperCase();
	if (aName.indexOf("SAFARI") >= 0) return "Safari";
	if (aName.indexOf("CHIMERA") >= 0) return "Camino";
	
	aName = navigator.appName.toUpperCase();
	if (aName.indexOf("NETSCAPE") >= 0)  return "Netscape";
	if (aName.indexOf("MICROSOFT") >= 0) return "Explorer";
	return "";
}



function nikkibizWindow()
{
    window.open('http://www.tbc-u.ac.jp/business/nikki.php','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=540,height=600');
}

function nikkiwelWindow()
{
    window.open('http://www.tbc-u.ac.jp/welfare/nikki.php','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=540,height=600');
}


function mailWindow()
{
   window.open('http://www.tbc-u.ac.jp/mail.std.php','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=420');
}

function inquiryWindow()
{
    window.open('http://www.tbc-u.ac.jp/inquiry.std.php','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=420');
}

function setumeikaiWindow()
{
   window.open('http://www.tbc-u.ac.jp/reservation.std.php','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=420');
}

function apartWindow()
{
   window.open('http://www.tbc-u.ac.jp/apart.html','apartWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=420');
}

function swpara()
{
   window.open('http://www.tbc-u.ac.jp/swpara.html','apartWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=420');
}


function guide2008Window()
{
   window.open('http://www.tbc-u.ac.jp/guide2008.html','guide2008Win','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=420');
}


/*add*/
function digitalWindow()
{
   window.open('http://www.tbc-u.ac.jp/digital.html','digitalWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=770,height=600');
}


function summerspWindow()
{
   window.open('http://www.tbc-u.ac.jp/summer_cp.html','summerspWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=620,height=550');
}

function swpara()
{
   adWindow=window.open('http://www.tbc-u.ac.jp/swpara.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=605,height=900');
}

function totinavi()
{
   adWindow=window.open('http://www.tbc-u.ac.jp/totinavi.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=605,height=900');
}


/*資格一覧：福祉*/
function list_wel()
{
   window.open('qual_list.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=720,height=750');
}





/**/
function list_biz01()
{
   adWindow=window.open('qual_dg.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=720,height=500');
}

function list_biz02()
{
   adWindow=window.open('qual_ma.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=720,height=500');
}



function list_biz03()
{
   adWindow=window.open('qual_ip.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=720,height=500');
}

function list_biz04()
{
   adWindow=window.open('qual_ac.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=720,height=500');
}

function list_biz05()
{
   adWindow=window.open('qual_it.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=720,height=500');
}

function list_biz06()
{
   adWindow=window.open('qual_ib.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=720,height=500');
}

function list_biz07()
{
   adWindow=window.open('qual_ps.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=720,height=500');
}

function list_biz08()
{
   adWindow=window.open('qual_pl.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=720,height=500');
}

function ex2008WWindow()
{
   window.open('http://www.tbc-u.ac.jp/ex2008winter.html','ex2008Win','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600');
}

function ex2009Window()
{
   window.open('http://www.tbc-u.ac.jp/ex2009.html','ex2008Win','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600');
}

function ex200902Window()
{
   window.open('http://www.tbc-u.ac.jp/ex200902.html','ex200902Win','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600');
}

function summerfes()
{
   window.open('http://www.tbc-u.ac.jp/summerfes09.html','newWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=720,height=600');
}


function aoWin()
{
   window.open('http://www.tbc-u.ac.jp/ao.html','apartWin','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=920,height=768');
}

/*
function list_biz08()
{
   adWindow=window.open('qual_pl.html','1_window','width=720,height=500,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
}*/


/*相談会01:社会人*/
function consulWin01(){
	st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	wx = 720;
	wy = 680;
	x = (screen.width  - wx) / 2;
	y = ((screen.height - wy) / 2) - 30;
	newwin = window.open(from_rootpath+"/extra/consul01.html","newWinConsul","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*相談会02:保護者*/
function consulWin02(){
	st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	wx = 720;
	wy = 680;
	x = (screen.width  - wx) / 2;
	y = ((screen.height - wy) / 2) - 30;
	newwin = window.open(from_rootpath+"/extra/consul02.html","newWinConsul","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*相談会03:イヴニング*/
function consulWin03(){
	st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	wx = 720;
	wy = 680;
	x = (screen.width  - wx) / 2;
	y = ((screen.height - wy) / 2) - 30;
	newwin = window.open(from_rootpath+"/extra/consul03.html","newWinConsul","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

