﻿// JScript File

function Show(n,w,h,t)
{
    if (t==""){t = "Millennium Insurance Brokers";}
	win = window.open (n, "", "toolbar=no,title="+t+",location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width="+w+",height="+h,true);
	if (win==null)
		Alert ("Your browser settings are preventing this software from creating a new window to show you information. \n\nPlease amend your browser settings to allow 'popups' for this site.");
	CentreWindow(win,w,h);
	win.focus();
}

function CentreWindow(win, windowWidth,windowHeight)
	{
	if (parseInt(navigator.appVersion) >= 4)
		win.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));
	}
	
	// Retrieve and display a document held in the remote library, doc is referred to by key
function ShowDocR(t,f)
	{	Show("Redirect.aspx?d="+f,800,700,t);	}

	// Retrieve and display a document held in the remote library, doc is referred to by library location
function ShowDoc(t,f)
	{	Show("Redirect.aspx?f="+f,800,700,t);	}

	// Retrieve and display a document held in the remote library
function ShowSneak(t,f)
	{	Show("Redirect.aspx?t="+f,1024,768,t);	}
