/* Copyright Bridgeline Software, Inc. An unpublished work created in 2008. All rights reserved. 
This software contains the confidential and trade secret information of Bridgeline Software, Inc. ("Bridgeline").  
Copying, distribution or disclosure without Bridgeline's express written permission is prohibited. */

// Open a Popup when Print button is clicked.
// It uses JQuery
$(function(){  
    $("a[rel='pop-up']").click(function () {
        var urlLink = this.href;
        var winName = "New Window";
        var winWidth = 800;
        var winHeight = 700;
        var screenWidth = $(window).width();
        var screenHeight = $(window).height();
        var leftPosition = (screenWidth) ? (screenWidth-winWidth)/2 : 0;
        var topPosition = (screenHeight) ? (screenHeight-winHeight)/2 : 0;
        var features = "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes";
    	features += " ,top="+topPosition+" ,left="+leftPosition+" ,width=" + winWidth + ",height=" + winHeight;
    	
        newwindow=window.open(urlLink, 'Popup', features);
        return false;
    });
});

