function OBJ_SIZE_POS(elem){	var el = $(elem);	var thePosition = Position.cumulativeOffset(el);	var theSize = Element.getDimensions(el);	var InfoObj = {		  left:thePosition[0],		   top:thePosition[1],		 width:theSize.width,		height:theSize.height	}	return InfoObj;}function GetQueryStr(URLstr){	arr = URLstr.split("?");	if (arr.length > 1)	return ("?"+arr[1]);	else	return "";}function GetPathname(URLstr){	Path	= URLstr.split("?")[0];	Pos = Path.indexOf("http://",0);	if(Pos>=0){		Path	= Path.split("http://")[1];		arrDir = Path.split("/");		Path = "";		for(i=1;i<arrDir.length;i++){Path = Path +"/"+ arrDir[i];}		return Path;	}else{		return Path;	}}function SetParam(URLstr, targetPName, theValue){	QS		= GetQueryStr(URLstr);	Path	= GetPathname(URLstr);	if(QS != ""){		QS = QS.split("?")[1];		Phrase_A = targetPName + "=";		Phrase_B = "&" + targetPName + "=";		var RE_A = new RegExp(Phrase_A,"i");		var RE_B = new RegExp(Phrase_B,"i");		Is_Phrase_A_IncludeIn = ((QS.search(RE_A) == 0) ? true:false) ;		Is_Phrase_B_IncludeIn = ((QS.search(RE_B) >= 0) ? true:false) ;		if(Is_Phrase_A_IncludeIn || Is_Phrase_B_IncludeIn){			aNameValuePair = QS.split("&");			NbP = aNameValuePair.length;			NewQS = "";			var RE_ParaName = new RegExp('^'+targetPName+'$','i');			for(i=1;i<=NbP;i++){				thePair = aNameValuePair[i-1];				theName = (thePair.split("="))[0];				if(theName.search(RE_ParaName) == 0){					thePair = targetPName + "=" + theValue;				}				NewQS = NewQS + thePair;				if(i<NbP)	NewQS = NewQS + "&";			}		}else{			NewQS = QS + "&" + targetPName + "=" + theValue;		}		NewURL = Path + "?" + NewQS;	}else{		NewURL = Path + "?" + targetPName + "=" + theValue;	}	return NewURL;}function GetParam(URLstr, targetPName){	QS		= GetQueryStr(URLstr);	Path	= GetPathname(URLstr);	theValue = "";	if(QS != ""){		var RE = new RegExp(targetPName+"=","i");		if(QS.search(RE) != -1){			QS = QS.split("?")[1];			aNameValuePair = QS.split("&");			NbP = aNameValuePair.length;			var RE_ParaName = new RegExp('^'+targetPName+'$','i');			for(i=1;i<=NbP;i++){				thePair = aNameValuePair[i-1];				theName = (thePair.split("="))[0];				if(theName.search(RE_ParaName) == 0){					theValue = (thePair.split("="))[1];					i = NbP;				}			}		}	}	return theValue;}function UniqueString(){	var now = new Date;	var number =  now.getTime();	return number.toString("36");}function UniqueURL(theURL){	var uid = UniqueString();	var dlmt = "#";	var URLparts = theURL.split(dlmt);	theURLpath = URLparts[0];	if (theURL.indexOf("?") <= -1)	{		/* パラメータはまだ無い */		URLwithSuffix = theURLpath + "?nc=" + uid;	} else {		/* 既にパラメータがある */		var URLandParam = theURLpath.split('?');		var theWithoutParam = URLandParam[0];		var theParams = URLandParam[1];		var arParams = theParams.split('&');		var theParams = "";		for ( i = 0; i < arParams.length; i++)		{			if ((arParams[i].indexOf("nc=") <= -1)	& (arParams[i].indexOf("RefererByJS=") <= -1)){				theParams = theParams + arParams[i] + "&"			}		}		/* いきなり“?”で始まるURLを渡された場合 */		if ( theWithoutParam == "" ){			theWithoutParam = location.pathname;		}		URLwithSuffix = theWithoutParam + "?" + theParams + "nc=" + uid;	}	/* 生成したURLへジャンプ */	if ( URLparts.length >= 2 ) {		RtnURL = URLwithSuffix + "#" + URLparts[1];		} else {		RtnURL = URLwithSuffix;	}		return RtnURL;	}function nocache(theURL){	location.href = UniqueURL(theURL);	return false;}function Goto(theObj){	theObj.blur();	return nocache(theObj.href);}function ChangeURL(theObj){	theObj.blur();	location.replace(UniqueURL(theObj.href));	return false;}// 仮予約申し込み画面を開くのに作った。// /INCLUDE/Candidate.html 内のボタンからコールされる。function JS_showPage(theTitle, theURL, WinW, WinH){			var baseWinL = window.screenLeft;			var baseWinT = window.screenTop;			var baseWinW,baseWinH;			if(document.all){				baseWinW = document.documentElement.clientWidth;				baseWinH = document.documentElement.clientHeight;			}else{				baseWinW = window.outerWidth;				baseWinH = window.outerHeight;			}			var baseWinCenterX = baseWinW/2+baseWinL;			var baseWinCenterY = baseWinH/2+baseWinT;						var NewWinW = 700;			var NewWinH = 730;			if(!!WinW){NewWinW = WinW}			if(!!WinH){NewWinH = WinH}						var NewWinL = baseWinCenterX - (NewWinW/2);			var NewWinT = baseWinCenterY - (NewWinH/2);									winOpt = 'width='+ NewWinW +',height='+NewWinH+',left='+NewWinL+',top='+NewWinT+',scrollbars=yes';						winRef = window.open(theURL, theTitle, winOpt);			winRef.focus();}/*  数値の正規化（全角→半角、数値、算術記号以外は削除）────────────────────────────── */function ToRomanNumONLY(src){	var str = new String;	var len = src.length;	for (var i = 0; i < len; i++) {		var c = src.charCodeAt(i);		if (c >= 65281 && c <= 65374 && c != 65340) {			str += String.fromCharCode(c - 65248);		} else if (c == 8217) {			str += String.fromCharCode(39);		} else if (c == 8221) {			str += String.fromCharCode(34);		} else if (c == 12288) {			str += String.fromCharCode(32);		} else if (c == 65507) {			str += String.fromCharCode(126);		} else if (c == 65509) {			str += String.fromCharCode(92);		} else if (c >= 43 && c <= 57) {			str += src.charAt(i);		} else {			//str += src.charAt(i);		} 	}	return str;}/*===========================================  　　css_browser_selector.js を イ ン ク ル ー ド  ===========================================*/document.write('<script type="text/javascript" src="/system/js/css_browser_selector.js?nc=025"></script>');/*===========================================  　　Prototype.JS を イ ン ク ル ー ド  ===========================================*/document.write('<script type="text/javascript" src="/system/js/prototype.js?nc=151"></script>');/*===========================================  　　Prototype.JS を 使ったスクリプトを追加 ※ひな形  ===========================================*/var JS;JS  = "<script type='text/javascript'>\n";JS += " // Event.observe(window, 'load', function(ev){},false);\n";JS += "</script>";document.write(JS);/*===========================================  　　DOMEvent.JS を イ ン ク ル ー ド  ===========================================*/document.write('<script type="text/javascript" src="/system/js/DOMEvent.js?nc=200705"></script>');