    　var xmlHttp = null;
　　　　function CheckUser(ID)
　　　　{
　　　　　　try
　　　　　　{
　　　　　　　　xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
　　　　　　}
　　　　　　catch(err1)
　　　　　　{
　　　　　　　　try
　　　　　　　　{
　　　　　　　　　　xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
　　　　　　　　}
　　　　　　　　catch(err2)
　　　　　　　　{
　　　　　　　　　　xmlHttp = new XMLHttpRequest();
　　　　　　　　}
　　　　　　}
　　　　　　
　　　　　　var url = "delRerview.aspx?type=1&id="+ID;
　　　　　　xmlHttp.open("GET",url,true);
　　　　　　xmlHttp.onreadystatechange = OnHandler;
　　　　　　xmlHttp.send(null);
　　}
　　　function OnHandler()
        {
            if(xmlHttp.readyState == 4)
            {
                var isValid = xmlHttp.responseText;
              // var exists = document.getElementById("exsits");
                if(isValid.substring(0,1)=="1")
                {
                alert("評茅撹孔");
                window.location.reload();
                }
                else
                {
                 alert("評茅払移");
                 
                }
                // exists.innerHTML = isValid.substring(0,4);
            
            }
        }
    function  CheckAll(e,itemname){
    var aa=document.getElementsByName(itemname);
    if(aa==undefined) return;
    for (var i=0; i<aa.length; i++)aa[i].checked = e.checked;
}   

var isIe=(document.all)?true:false;
//譜崔select議辛需彜蓑
function setSelectState(state)
{
var objl=document.getElementsByTagName('select');
for(var i=0;i<objl.length;i++)
{
objl[i].style.visibility=state;
}
}
function mousePosition(ev)
{
if(ev.pageX || ev.pageY)
{
return {x:ev.pageX, y:ev.pageY};
}
return {
x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,y:ev.clientY + document.body.scrollTop - document.body.clientTop
};
}
//起竃圭隈
function showMessageBox(wTitle,content,pos,wWidth)
{
closeWindow();
 var winW = document.documentElement.clientWidth/6;    
var  winH = document.documentElement.clientHeight/6;

var bWidth=parseInt(document.documentElement.scrollWidth);
var bHeight=parseInt(document.documentElement.scrollHeight);
if(isIe){
setSelectState('hidden');}
var back=document.createElement("div");
back.id="back";
var styleStr="top:0px;left:0px;position:absolute;background:#666;width:"+bWidth+"px;height:"+bHeight+"px;";
styleStr+=(isIe)?"filter:alpha(opacity=40);":"opacity:0.40;";
back.style.cssText=styleStr;
document.body.appendChild(back);
var mesW=document.createElement("div");
mesW.id="mesWindow";
mesW.className="mesWindow";
mesW.innerHTML="<div class='mesWindowTop'><table width='100%' height='100%'><tr><td>"+wTitle+"</td><td style='width:1px;'><input type='button' onclick='closeWindow();' title='購液完笥' class='close' value='購液' /></td></tr></table></div><div class='mesWindowContent' id='mesWindowContent' align='center'>"+content+"</div><div class='mesWindowBottom'></div>";
//styleStr="left:"+(((pos.x-wWidth)>0)?(pos.x-wWidth):pos.x)+"px;top:"+(pos.y)+"px;position:absolute;width:"+wWidth+"px;";
styleStr="left:"+winW+"px;top:"+winH+"px;position:absolute;width:"+wWidth+"px;";
mesW.style.cssText=styleStr;
document.body.appendChild(mesW);
}
function showBackground(obj,endInt)
{
obj.filters.alpha.opacity+=1;
if(obj.filters.alpha.opacity<endInt)
{
setTimeout(function(){showBackground(obj,endInt)},8);
}
}
//購液完笥
function closeWindow()
{
if(document.getElementById('back')!=null)
{
document.getElementById('back').parentNode.removeChild(document.getElementById('back'));
}
if(document.getElementById('mesWindow')!=null)
{
document.getElementById('mesWindow').parentNode.removeChild(document.getElementById('mesWindow'));
}
if(isIe){
setSelectState('');}
}
//霞編起竃
function testMessageBox(ev,id)
{
var objPos = mousePosition(ev);
messContent="<iframe frameborder='0' height='260px' width='370px' marginheight='0' marginwidth='0'src='Rerview.aspx?type=1&rid="+id+"'></iframe>";
showMessageBox('耶紗指鹸',messContent,objPos,400);
}