﻿// JScript 文件   弹出模式框  面试邀请  放入收藏夹  留言 发送邮件 等等
/*guoguangyao 2009-4-25*/
/*---_url,_width,_height,_obj（传进来的对象：当_flag为true时，就是name集合对象，否则就是唯一的value值）---*/
function Dialog(_url,_width,_height,_obj,_flag)
{
    var str="";
    if(_flag)
    {
        var temp = document.getElementsByName(_obj);
        for(var i=0;i<temp.length;i++)
        {
            if(temp[i].checked)
                str+=temp[i].value+",";
        }
        str=str.substr(0,str.length-1);       
    }
    else
    {
        //var temp1=document.getElementById(_obj);
        str=_obj;
    }
    if(str=="")
    {
        alert('请选择后再操作！');
    }
    else
    {
      //window.showModalDialog(_url+str,"newModal","dialogwidth:"+_width+";dialogheight:"+_height+";center:yes;status:no;scroll:no;help:no");
          window.open(_url+str,"","width="+_width+",height="+_height+"");
         //showModelessDialog(_url+str,"","center:yes;help:no;resizable:yes;status:yes;dialogWidth:"+_width+";dialogHeight:"+_height+"");
    }
}


