﻿var submitted = 0;

function noError() {
    return true;
}

function screenwidth() {
    var screenX;
    if (navigator.appName == "Microsoft Internet Explorer") {
        screenX = window.screen.availWidth;
    }
    else {
        screenX = window.screen.availWidth
    }
    return screenX;
}

function screenheight() {
    var screenY;
    if (navigator.appName == "Microsoft Internet Explorer") {
        screenY = window.screen.availHeight;
    }
    else {
        screenY = window.screen.availHeight
    }
    return screenY;
}

function popupcenter(pageurl) {
    var wLeft;
    wLeft = (screenwidth() / 2) - 200;
    var options = 'toolbar=0,location=0,scrollbars=1,resizable=1,dependent=1,top=50,left=' + wLeft + ',width=720,height=480'
    window.open(pageurl, 'GroveSite_WWW_PopupMed', options).focus();
    return false;
}

function popupfull(pageurl) {
    var wHeight;
    var wWidth;
    wHeight = screenheight() - 100;
    wWidth = screenwidth() - 50;
    var options = 'toolbar=0,location=0,scrollbars=1,resizable=1,dependent=1,top=20,left=20,width=' + wWidth + ',height=' + wHeight
    window.open(pageurl, 'GroveSite_WWW_PopupFull', options).focus();
    return false;
}

