// 検索
////////////////////////////////////////////////////////////////////////////////
function formVal(temp){
	var temp;
	var y="";
	temp=temp.replace( /　/g, " " ); 
	temp = temp.replace(/^\s+|\s+$/g, "");
	temp = temp.replace(/\/\s+/g, "");
	temp = temp.replace(/\s+\//g, "");
	temp = temp.replace(/\"\s+/g, "");
	temp = temp.replace(/\s+\"/g, "");
		if (temp == "/") {
		temp=y;}
		if (temp == "\""){
		temp=y; }
	nmz.query.value=temp;
	nmz.submit();
}



// ロールオーバー
////////////////////////////////////////////////////////////////////////////////
var defImg;
function ImgChange(target, img){
  if(document.getElementById){
    defImg = document.getElementById(target).getAttribute("src");
    document.getElementById(target).setAttribute("src", img);
  }
}
function ImgBack(target){
  if(document.getElementById){
    document.getElementById(target).setAttribute("src",defImg);
  }
}



// ポップアップ
////////////////////////////////////////////////////////////////////////////////
function openwindow(url,target)
{
window.open(url,target, "scrollbars=1,resizable=1,width=470,height=170")
.focus();
}



// 講師紹介ポップアップ 
////////////////////////////////////////////////////////////////////////////////
var Wo1;
var window_width=620;
var window_height=345;
var left_point;
var top_point;
function Init() {
left_point=(window.screen.availWidth-window_width)/2;
top_point=(window.screen.availHeight-window_height)/2;
if(left_point<0) left_point=0;
if(top_point<0) top_point=0;
}
function Koshi_Open(URL,doga) {
Wo1=window.open (URL,"koshi","toolbar=no,location=no,directories=no,menubar=no,resizable=yes,width="+window_width+",height="+(window_height)+",innerWidth="+window_width+",innerHeight="+(window_height)+",left="+left_point+",top="+top_point+",screenX="+left_point+", screenY = " + top_point );
Wo1.focus();
}
