/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function togglecontact(id, ac) {
    window.location="contact/toggle.php?id="+id+"&ac="+ac;
    return true;
}

function contactmodify(id) {
    window.location="contact/modify.php?id="+id;
    return true;
}

function selectall(id) {
    window.location="contact/selectall.php?id="+id;
    return true;
}

function selectnames(min, max) {
    alert(min + " - " + max+"Z");
    return true;
}
function ModiGroup(id) {
    window.location="groups/assign.php?id="+id;
    return true;
}

// Make a popup window function.
function create_window (image, width, height) {

    // Add some pixels to the width and height.
    width = width + 25;
    height = height + 250;

    // If the window is already open, resize it to the new dimensions.

    if (window.popup_window && !window.popup_window.closed) {
        window.popup_window.resizeTo(width, height);
    }

    // Set the window properties.
    var window_specs = "location=no, scrollbars=yes, menubars=no, toolbars=no, resizable=yes, left=10, top=10, width=" + width + ", height=" + height;

    // Set the URL.
    var url = image;

    // Create the popup window.
    popup_window = window.open(url, "PictureWindow", window_specs);
    popup_window.focus();

} // End of function.

