﻿// JScript File
function openwindow(url,w,h,sbars,resize)
{
	var winparams = "toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars="+sbars+", resizable="+resize+", width="+w+", height="+h;
	window.open(url,"mynewwindow", winparams);
}

/*
 openwindow1 : The window is being opened via a page on the web site
*/ 
function openwindow1(url,w,h,sbars,resize)
{
	var winparams = "toolbar=yes, location=no, directories=no, status=yes, menubar=yes, scrollbars="+sbars+", resizable="+resize+", width="+w+", height="+h;
	window.open(url,"mynewwindow", winparams);
}


/*
 openwindow2 : The window is being opened via an external source such as an email
 
			   We keep the params so we can just replace a call to openwindow1 with a call to openwindow2 in the email program
*/ 
function openwindow2(url,w,h,sbars,resize)
{
	var winparams = "toolbar=yes, location=yes, directories=no, status=yes, menubar=yes, scrollbars=yes, resizable=yes";
	window.open(url,"mynewwindow", winparams);
}

function openwindowwithparam(url,param,w,h,sbars,resize)
{
	var winparams = "toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars="+sbars+", resizable="+resize+", width="+w+", height="+h;
	window.open(url+param,"mynewwindow", winparams);
}


