
function fnShowSearchPop(c_id,x,y)
{
    var x1 = x==""?0:x;
    var y1 = y==""?0:y;
    var x_go = parseInt(x1) + 500;
    var y_go = parseInt(y1) - 80;
    
    vM.MoveTo(x_go,y_go);
    vMe.MoveTo(x_go,y_go);
    vM.Zoom(1);
    _PopLayer = vM.NewMapLayer('PopLayer',499, 0);
    _PopLayer.innerHTML = '';
    var EntityIinfo_id = vM.getEntityInfo("div_entity");
    var entity = vM.$("div_entity");
    
    if(entity!=null && EntityIinfo_id!=false  )
    {
    closeDiv(vM.$("div_entity"));
//	vM.$("div_entity").innerHTML='<div style="filter:alpha(opacity=75);width:500px;"><iframe frameborder=0 width=500px; height=280px allowTransparency=true style="background-color:transparent"  scrolling=no src=EntityCompany.aspx?c_id='+c_id+'></iframe></div>';
//	//vM.moveEntity('MyDivpop',vM.PointerX(),vM.PointerY());
//	vM.moveEntity("div_entity",x,y);
    }
//    else
//    {
    var MyDiv = vM.$C("div");
	MyDiv.id = "div_entity";
	MyDiv.innerHTML='<div style="filter:alpha(opacity=85);width:450px;"><iframe frameborder=0 width=450px; height=275px allowTransparency=true style="background-color:transparent"  scrolling=no src=EntityCompany.aspx?c_id='+c_id+'></iframe></div>';
	vM.appendEntity(MyDiv, _PopLayer, false, x1,y1,50,30,0,185, false);
    //}
    
    
}
function closeDiv(divobj)
{
    divobj.parentNode.removeChild(divobj);
}
function fnPutSmallIcon(num,x,y)
{
    fnOnload();
    var x1 = x==""?0:x;
    var y1 = y==""?0:y;
    if(x==""||y=="")
        return ;
    _IconLayer = vM.NewMapLayer('Icon',268 , 0);
    _EyeIconLayer = vMe.NewMapLayer('Icon', 264, 0);
    _IconLayer.innerHTML = '';
    _EyeIconLayer.innerHTML='';
    var MyDiv = vM.$C("div");
	MyDiv.id = "MyDiv"+num;
	MyDiv.innerHTML='<div style="background:url(Images/iconflash.gif) no-repeat;width:27px; height:37px;text-align:center; vertical-align:middle;">' + num + '</div>';
	//vM.appendEntity(MyDiv, _IconLayer, false, x1,y1,27,37,15,37, false);
	//vMe.appendEntity(MyDiv, _EyeIconLayer, false, x1,y1,27,37,15,37, false);

}
