//60.28.216.41
function showFlash()
{
		var html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="295" height="200">    <param name="movie" value="/hwr/hwr.swf"> <param name="quality" value="high"><param name="flashvars" value="serverIP=219.232.254.43"/><embed flashvars="serverIP=219.232.254.43" src="/hwr/hwr.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="295" height="200" /></object>';
	open_lw(html);
	
}
function showIndexFlash()
{
	var html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="295" height="200">    <param name="movie" value="/hwr/hwr.swf"> <param name="quality" value="high"><param name="flashvars" value="serverIP=219.232.254.43"/><embed flashvars="serverIP=219.232.254.43" src="/hwr/hwr.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="295" height="200" /></object>';
	var id='showflash';
	var mouse = getCoords(document.getElementById('showButton'));
    if(!document.getElementById(id))
    {   
		var lw = document.createElement("div");
		var top=mouse.y+43;
		var left=mouse.x-90;
		lw.style.left=left+"px";
		lw.style.top=top+"px";
		lw.style.margin="0px";
		lw.style.padding="0px";
		lw.style.position="absolute";
		//lw.style.zIndex="-1";
		lw.id=id;
		lw.innerHTML =html;
		lw.style.background = "#fff"; 
       document.body.appendChild(lw);
	}
	else
	{
		iciba_shouxie_close();
	}
}
function SinoVoice_show(content){
document.getElementById("cn").value+=content;
//postTran(content,'shouxie');
//ICIBA.Suggest.InputOnKeyup();
}

//function $(id) {
//    return document.getElementById(id);
//}
 
function open_lw(html)
{
	var id='showflash';
	var mouse = getCoords(document.getElementById('showButton'));
    if(!document.getElementById(id))
    {   
		var lw = document.createElement("div");
		var top=mouse.y+32;
		var left=mouse.x-190;
		lw.style.left=left+"px";
		lw.style.top=top+"px";
		lw.style.margin="0px";
		lw.style.padding="0px";
		lw.style.position="absolute";
		//lw.style.zIndex="-1";
		lw.id=id;
		lw.innerHTML =html;
		lw.style.background = "#fff"; 
       document.body.appendChild(lw);
	}
	else
	{
		iciba_shouxie_close();
	}
}
function open_div(createid,showid)
{
	
	var mouse = getCoords(document.getElementById(showid));
    if(!document.getElementById(createid))
    {   
		var lw = document.createElement("div");
		var top=mouse.y+22;
		var left=mouse.x-50;
		lw.style.left=left+"px";
		lw.style.top=top+"px";
		lw.style.margin="0px";
		lw.style.padding="0px";
		lw.style.position="absolute";
		//lw.style.zIndex="999";
		lw.id=createid;
		lw.style.background = "#fff"; 
       document.body.appendChild(lw);
	}
	else
	{
		if(document.getElementById(showid))
		{
			var lw = document.getElementById(showid);
			document.body.removeChild(lw);
		}
	}
}
function getCoords(node){
    var x = node.offsetLeft;
    var y = node.offsetTop;
    var parent = node.offsetParent;
    while (parent != null){
        x += parent.offsetLeft;
        y += parent.offsetTop;
        parent = parent.offsetParent;
    }
    return {x: x, y: y};
}
function iciba_shouxie_close()
{
	var id='showflash'; 
	if(document.getElementById(id))
    {
        var lw = document.getElementById(id);
        document.body.removeChild(lw);
    }
}
function InitAjax()
{
    var http_request = false;

    if (window.XMLHttpRequest)
    {
        http_request = new XMLHttpRequest();
        if (http_request.overrideMimeType)
        {
            http_request.overrideMimeType('text/xml');
        }
    }
    else if (window.ActiveXObject)
    {
        try
        {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e)
        {
            try
            {
                http_request = new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (e)
            {}
        }
    }
    if (!http_request)
    {
        alert('Giving up :( Cannot create an XMLHTTP instance');
        return false;
    }
    return http_request;
}


function alertPost()
{
	
	if (xmlhttp_request.readyState == 4) 
	{
		// �յ�����ķ�������Ӧ
		if (xmlhttp_request.status == 200) 
		{
;
		}
	}
}