function openWin() {
    var url, width = 500, height = 200, menu = "";
    args = arguments;
    url = args[0];
    if (args.length > 1) {
        width = args[1];
    }
    if (args.length > 2) {
        height = args[2];
    }
    if (args.length > 3) {
        if (args[3]) {
            menu = ",menubar=yes,toolbar=yes";
        }
    }
    var newwin = window.open(url, 'newWin' + Math.floor(Math.random() * 1000), 'width=' + width + ',height=' + height + ',scrollbars,resizable' + menu);
}

function replaceValueOnInputElement(elementObj, originalValueToReplace) {

    var inputValue = elementObj.value;

    if (inputValue == originalValueToReplace) {
        elementObj.value = '';
    }

    return false;
}


/* ##################################### FONT SIZE CHANGER ############################### */

function setFontSizeFromCookie() {
    var fontSize = $.cookie('font-size');
    //alert('Font Size: ' + fontSize + ' null? ' + (fontSize != null) + ' blank? ' + (fontSize != ''));
    if (fontSize != null) {
        //alert('Font Size: settign to ' + fontSize );
        var currentFontSize = $('body').css('font-size');
        //alert('Before: ' + currentFontSize);

        var fontSizeNum = parseFloat(fontSize, 10);

        $('body').css('font-size', fontSizeNum);

        currentFontSize = $('body').css('font-size');
        //alert('After: ' + currentFontSize);
    }
}
