﻿var win = null;
function NewWindow(mypage, myname, w, h, scroll) {
    // Last mods 20100224 - tbankes@libertastechnologies.com
    LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
    TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
    settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable'
    win = window.open(mypage, myname, settings)
    if (win.window.focus) { win.window.focus(); }
}
function clearSearchText(textboxId) {
    document.getElementById(textboxId).value = '';
}
function resetDropDown(dropdownId) {
    document.getElementById(dropdownId).selectedIndex = 0;
}
function setSearchClass(strObjectID) {
    var objCurrent = this;
    if (document.getElementById(strObjectID) != null) {
        document.getElementById(strObjectID).style.color = '#000000';
        document.getElementById(strObjectID).value = '';
    }
}
function openPrint() {
    window.open('/Includes/Controls/Print.aspx', '', 'width=800, height=500, scrollbars=1, toolbar=1, location=0');
}
function removeJob(strjobID) {
    if (confirm('Are you sure that you want to remove this Job Position from your My Jobs listing?')) {
        if (document.getElementById('hidJobID')) {
            objHidField = document.getElementById('hidJobID').value = strjobID;
            if (document.getElementById('butRemoveJob')) {
                document.getElementById('butRemoveJob').click()
            }
        }
    }
}
