// JavaScript Document

function synButtonFn(ID){
	state = document.getElementById(ID).disabled;
	document.getElementById(ID).disabled = !state;
}

function windowOpenW500S(URL){
	win=window.open(URL,"subwin","scrollbars=1,resizable=1,width=550,height=700");
	win.focus();
}

function windowOpenW700S(URL){
	win=window.open(URL,"subwin","scrollbars=1,resizable=1,width=750,height=400");
	win.focus();
}

function windowOpenW800S(URL){
	win=window.open(URL,"subwin","scrollbars=1,resizable=1,width=850,height=700");
	win.focus();
}

function windowclose(){
window.close();
}


function getElementPosition(element) {
var offsetTrail = (typeof element == 'string') ? document.getElementById(element) : element;
var offsetLeft = 0;
var offsetTop = 0;

while (offsetTrail) {
offsetLeft += offsetTrail.offsetLeft;
offsetTop += offsetTrail.offsetTop;
offsetTrail = offsetTrail.offsetParent;
}

if (navigator.userAgent.indexOf('Mac') != -1 && typeof document.body.leftMargin != "undefined") {
offsetLeft += document.body.leftMargin;
offsetTop += document.body.topMargin;
}

return ({left: offsetLeft, top: offsetTop});
}

//�Z���N�g�{�b�N�X�@IE�o�O����
function menuHeightControll(){
	listElement = document.getElementById('list');
	selectHeit = getElementPosition(listElement);
	searchElement = document.getElementById('searchCloseBt');
	btHeith = getElementPosition(searchElement);

	if(selectHeit.top <= btHeith.top+32){document.getElementById('list').style.visibility = 'hidden';}
	if(selectHeit.top > btHeith.top+32){document.getElementById('list').style.visibility = 'visible';}
}

var clsflg=0;
function menuSlide(){
$("#searchBoxAdditionalCondition").slideToggle("hide",menuHeightControll);
	if(clsflg==0)
	{
		$("#searchCloseBt").css("background","url(parts/seachBt.gif) no-repeat -156px -5px");
		clsflg++;
	}
	else
	{
		$("#searchCloseBt").css("background","url(parts/seachBt.gif) no-repeat -5px -5px");
		clsflg--;
	}
}


<!-------------------------------------- 変更　function変更 081004 -------------------------------------->
function contentsHeight()
{
	var hi = 0;
	var topObj = document.getElementById('searchBoxTop');
	var topSecObj = document.getElementById('searchBoxTopSec');
	var searchBoxUnder = $("#searchBoxUnder").height();

	if(topObj == null){document.getElementById('searchBoxUnder').style.top = '0px';}
	if(topObj != null){hi += 100;}
	if(topSecObj != null){hi += 100;}
	if(topObj == null && topSecObj == null){hi -= 50;}
	if(topSecObj == null){hi += 20;}
	hi += 50+30+searchBoxUnder;
	$("#contents").height(hi);
	$("#info").css("visibility","visible");
	$(".anchor").css("visibility","visible");
	$("#copy").css("visibility","visible");
}
<!-------------------------------------- 変更　function変更 081004 -------------------------------------->


//--window.onload = contentsHeight;










/*
var i=0;
function menuSlide(){
$("#searchBoxAdditionalCondition").slideToggle("hide");
	if(i==0){
		$("#searchCloseBt").css("background","url(parts/seachBt.gif) no-repeat -156px -5px");
		i++;
		}
	else{
		$("#searchCloseBt").css("background","url(parts/seachBt.gif) no-repeat -5px -5px");
		i--;
		}

//�Z���N�g�{�b�N�X�@IE�o�O����

document.getElementById('list');
setTimeout('$("#list").toggle()',100);
}

function hoge(){
var searchBoxUnder = $("#searchBoxUnder").height();
hi = 100+35+30+30+searchBoxUnder;
$("#contents").height(hi);
}

window.onload = hoge;
*/