﻿/*
    ' Programmer    Date        PP      Modification
    ' SGC           21/10/05    3093    Written
*/

/* Popup function for usage in the quote engine and for launching the quote engine.
      Location  = url to open
      Width     = width of the popup
      Height    = height of the popup
      Name      = name of the window.open call, defaults to JMI
*/
function Popup(location,width,height,name) {
    var intLeftPos = (screen.width) ? (screen.width-width)/2 : 0;
    var intTopPos = (screen.height) ? (screen.height-height)/2 : 0;
    var screenName = "JMI"
    if (name != '')
    {
        screenName = name;
    }
    WindowObjectReference = window.open(location,screenName,"width="+width+",height="+height+",left="+intLeftPos+",top="+intTopPos+",resizable=yes,scrollbars=yes,status=yes");
    WindowObjectReference.focus();
} 