function openTerms(anchor) {
	var width = (screen.availWidth - 717) / 2;
	var height = (screen.availHeight - 600) / 2;
	OpenWin = null;
	OpenWin = window.open('http://www.dowbe.com/program/do/tool/tandc?methodName=' + anchor +'&pref_help=0',
		'Legal',
		'width=717,height=600,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,left='+ width +',top='+ height);
	OpenWin.focus();
}


function loadHeaderFooter() {
	$.ajax({
		dataType: "html",
		cache: true,
		url: "/jp/include/header.html",
		success: function(data) {
			$('#header_pane').html(data);
		},
		error: function(XMLHttpRequest, textStatus, errorThrown) {
			alert(textStatus);
		}
	});
	$.ajax({
		dataType: "html",
		cache: true,
		url: "/jp/include/footer.html",
		success: function(data) {
			$('#footer_pane').html(data);
		},
		error: function(XMLHttpRequest, textStatus, errorThrown) {
			alert(textStatus);
		}
	});
}

$(document).ready(function(){
//	loadHeaderFooter();
//	$('body').show();
});


/** for css hover problem (only IE6) */	
try {
	document.execCommand("BackgroundImageCache", false, true);
} catch(e) {}

