var imgtargetLeftM;
var pstimeLeftM;
var PImgViewLeftM;



ajax = false;
// IE戚須
if(window.XMLHttpRequest) {
　　　ajax = new XMLHttpRequest();
// IE遂
} else if(window.ActiveXObject) {
　　　try {
　　　　　　ajax = new ActiveXObject("Msxml2.XMLHTTP");
　　　} catch(e) {
　　　　　　ajax = new ActiveXObject("Microsoft.XMLHTTP");
　　　}
}


document.writeln('<div name="abcde" id="miniImgxx" onmouseover="b_class_view_over()" onmouseout="b_class_view_out()"  onclick="PImgViewLeftM_Click(this);" style="background: buttonface; margin:2; border: 1 solid buttonshadow; width:150; display:none; position:absolute; z-index:1">');
//document.writeln('<iframe name="imgfrm" id="PImg_iFrame"  scrolling=no frameborder=no border=1 bordercolor=red></iframe>');
//document.writeln('<span  name="imgfrm" id="PImg_iFrame"></span>');
document.writeln('</div>');	
//document.writeln('<iframe name="hidden_iframe" src="" frameborder="1" width="0" height="0"></iframe>');



function b_class_view_over() {
	window.clearTimeout(pstimeLeftM);
}

function b_class_view_out() {
	pstimeLeftM=window.setTimeout("miniImgxx.style.display='none';", 200);
}

function b_class_view_click(e) {


//	document.all.miniImg.style.display='none';
	PImgViewLeftM.style.display='none';
}

function b_class_view(obj,ac_number,ac_name,topsize,leftsize) {

  // alert(ac_number);

	imgtargetLeftM = obj;															

	var top = document.body.clientTop + bc_imgGetObjectTop(obj);
	var left = document.body.clientLeft + bc_imgGetObjectLeft(obj);
	PImgViewLeftM = document.all.miniImgxx;


　　　ajax.open("GET", "/js/left_bc_class.asp?ac_number=" + ac_number + "&ac_name=" + ac_name,true);
　　　ajax.onreadystatechange = function() {
　　　　　　if (ajax.readyState == 4 && ajax.status == 200) {
　　　　　　　//　　var obj = document.getElementById(objID);
　　　　　　　　　miniImgxx.innerHTML = ajax.responseText;
　　　　　　}
　　   　}
　　　ajax.send(null);




//	document.all.myform.target="hidden_iframe"
 //   document.all.myform.action="/js/left_bc_class.asp?ac_number=" + ac_number + "&ac_name=" + ac_name
 //   document.all.myform.submit();
	
	PImgViewLeftM.style.pixelTop = top  + topsize +obj.offsetHeight;
	PImgViewLeftM.style.pixelLeft = left + leftsize;
	PImgViewLeftM.style.display = '';



}

function b_class_view_M(obj) {
	var now = obj.value.split("-");
	imgtargetLeftM = obj;															

	var top = document.body.clientTop + bc_imgGetObjectTop(obj);
	var left = document.body.clientLeft + bc_imgGetObjectLeft(obj);

	PImgViewLeftM = document.all.miniImgxx;
	PImgViewLeftM.style.pixelTop = top + obj.offsetHeight;
	PImgViewLeftM.style.pixelLeft = left;
	PImgViewLeftM.style.display = '';
	

}

/**
	HTML 鯵端遂 政匿軒銅 敗呪
**/
function bc_imgGetObjectTop(obj)
{
	if (obj.offsetParent == document.body)
		return obj.offsetTop;
	else
		return obj.offsetTop + bc_imgGetObjectTop(obj.offsetParent);
}

function bc_imgGetObjectLeft(obj)
{
	if (obj.offsetParent == document.body)
		return obj.offsetLeft;
	else
		return obj.offsetLeft + bc_imgGetObjectLeft(obj.offsetParent);
}
