//功能:公共js脚本
var popwin,popview;
function CreateControl(DivID, ObjectID, URL, WIDTH, HEIGHT, BGCOLOR)
{
var d = document.getElementById(DivID);
d.innerHTML = '';
}
//创建日历//
function CreateDate(DivID, ObjectID, BtnAlign, Depth)
{
var d = document.getElementById(DivID);
d.innerHTML = '';
d.children(0).mask = new Array();
return d.children(0);
}
//关闭日历//
function closeChoseDate(eventTarget) {
eventTarget.GotoFrame(2);
eventTarget.style.left = 0;
eventTarget.style.width = 18;
eventTarget.style.height = 18;
if(eventTarget.mask != null && eventTarget.mask.length>0){
for(i=0;i0){
for(i=0;i600)
{
left=(window.screen.width-600)/2
}
if( window.screen.height>700)
{
top=(window.screen.height-700)/4
}
open("pop_0.aspx?cid="+cid+"&id="+id,"pop","height=700,width=600,fullscreen=no,status=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,top="+top+",left="+left+"");
}
//打开地图
function __doOpenMap(strmap)
{
if (popwin!=null && !popwin.closed && popwin.open)
{
popwin.focus();
popwin.document.SpeedMap.SetVariable('_root.searchdata',strmap);
popwin.document.SpeedMap.GotoFrame(3);
}
else
{
popwin=open('/speedmap/speedmap.aspx?drawmode=0&searchdata='+strmap,'SpeedMap',"height=768,width=1024,status=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,top=0,left=0",true);
popwin.focus();
}
}
//打开地图
function __doOpenOpenView()
{
if (popview!=null && !popview.closed&& popview.open)
{
popview.focus();
}
else
{
popview=open('/Openview/Default.aspx','OpenView',"height=768,width=1024,status=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,top=0,left=0",true);
popview.focus();
}
}