//定义Popup
var oP=window.createPopup();
oP.document.body.style.background="beige";
//popup是否已显示
var oPShow=0;
function showTitle(obj){
var h=event.offsetY;
var fontsize=(obj.style.fontSize==""?(obj.currentStyle.fontSize==""?"9":obj.currentStyle.fontSize):obj.style.fontSize);
fontsize=parseInt(fontsize)*1.6;
var l=parseInt(h/fontsize);
oP.document.body.innerText=obj.options[l].text;
len=obj.options[l].text.length*8;
oP.show(event.offsetX+20,event.offsetY+fontsize+5,len,fontsize,document.body);
oPShow=1;
}
function hideTitle(obj){
if(oPShow==1)oP.hide();
}
function showt(obj){
oP.document.body.innerText=obj.value
var len=obj.value.length*8;
oP.show(event.offsetX+20,event.offsetY+20,len,15,document.body);
oPShow=1;
}
function schange(obj){
document.all.mselect.value=obj.options[obj.selectedIndex].text;
obj.parentElement.style.display='none';
}
function droplist(obj)
{
event.cancelBubble=true
div1.style.top=document.all.mselect.getBoundingClientRect().top;
div1.style.left=document.all.mselect.getBoundingClientRect().left;
div1.style.display=''
document.all.mselect.focus();
}
document.body.onclick=function(){
div1.style.display='none'
}
</script>