
function openWin(id,el_name,ef_name,type_data,dep_num,sub_dep_num,part) {

window.open('/person/researcher_form.asp?id=' + id + '&el_name=' + el_name + '&ef_name=' + ef_name + '&type_data=' + type_data + '&dep_num=' + dep_num + '&sub_dep_num=' + sub_dep_num + '&part=' + part,
            'name1',
            'menubar=no,resizable,scrollbars=yes,toolbar=no,top=0,left=0,width=670,height=530');

}
function openWinKey(url) {

window.open( url,
            'name1',
            'menubar=no,resizable,scrollbars=yes,toolbar=no,top=0,left=0,width=620,height=530');

}
function openWinKey2(url) {

window.open( url,
            'name2',
            'menubar=no,resizable,scrollbars=yes,toolbar=no,top=50,left=300,width=620,height=530');

}

function openDet(id,stryear,strmonth,strday,dep,sub_dep) {
window.open('/person/researcher_person.asp?id=' + id + '&stryear=' + stryear + '&strmonth=' + strmonth + '&strday=' + strday + '&dep=' + dep + '&sub_dep=' + sub_dep ,
            'name2',
            'menubar=no,resizable,scrollbars=yes,toolbar=no,top=0,left=0,width=620,height=530');
//window.location.href='researcher_form.asp?id=' + id + '&el_name=' + el_name + '&ef_name=' + ef_name + '&type_data=' + type_data
}

function openUpl(id,el_name,ef_name,dep,sub_dep) {
window.open('/person/person_portrait_form.asp?id=' + id + '&el_name=' + el_name + '&ef_name=' + ef_name + '&dep=' + dep + '&sub_dep=' + sub_dep ,
            'name2',
            'menubar=no,resizable,scrollbars=yes,toolbar=no,top=0,left=0,width=620,height=530');
//window.location.href='researcher_form.asp?id=' + id + '&el_name=' + el_name + '&ef_name=' + ef_name + '&type_data=' + type_data
}

////for researcher-form.asp,researcher_form.asp
function CheckDeleteFile() {
  document.form1.del_file.value="yes";
  document.form1.submit();
}

///for researcher-view.asp
function OpenWinPic(pic_name) {
         window.open(pic_name,'view1',
                     'menubar=no,unresizable,scrollbars=no,toolbar=no,location=no,width=480,height=400');
}


///for researcher-data.asp
function OpenWinFormat(url,w,h) {
         window.open(url,"view2",
                     '"menubar=no,resizable,scrollbars=yes,toolbar=no,location=yes,statusbar=no,left=100,top=80,width='+w+',height='+ h + '"');
}
///for person-update.asp
function erase(){
  document.theform.id.value="";
}


