function openPopup(url, name, width, height, x, y, addprops) {
    if(addprops == null) {
        addprops = "";
    }
    if(url == null || url == "") {
        return false;
    }
    else {
        myWindow = window.open(url, name,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',left='+x+',top='+y+',resizable=yes,scrollbars=yes'+addprops);
        myWindow.focus();
        return false;
    }
}

function formPopup(form, name, width, height, x, y, addprops) {
    return openPopup(form.go[form.go.selectedIndex].value, name, width, height, x, y, addprops);
}

function checkAll(fObj){
    for(i=0; i<fObj.length; i++){
        if(fObj[i].type == "checkbox" && fObj[i].name != "chkunchk"){
            fObj[i].checked = fObj.chkunchk.checked;;
        }
    }
}
