﻿var WindowObjectReference = null; // global variable
// Opens popup
function openPopup(strUrl, strWindowName, strProps)
{
    if(WindowObjectReference == null || WindowObjectReference.closed)
    {
        WindowObjectReference = window.open(strUrl, strWindowName, strProps + ",resizable=yes,scrollbars=yes,status=no,menubar=no,toolbar=no");
    }
        else
    {
        WindowObjectReference.focus();
    };
}
// Opens product _win controls
function onOpenData(url)
{
    var popwin = window.open(url, 'Data', 'height=700,width=700,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');
    if( typeof(popwin) != "undefined" && popwin )
	{
		popwin.focus();
	}
	return false;
}

// opens popup for flash product demo
function onOpenDemo(url)
{
    var popwin = window.open(url, "Demo", "height=768,width=1024,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes");
    if( typeof(popwin) != "undefined" && popwin )
	{
		popwin.focus();
	}
	return false;
}