// JavaScript Document
//function to control window pop-ups
//written by Alexis Williams HSC IS Application Development 10/20
function popup(url, name, width, height, left, top){
	settings=
		"toolbar=no,location=no,directories=no,"+
		"status=no,menubar=no,scrollbars=yes,"+
		"resizable=yes,width="+width+",height="+height+", left="+left+", top="+top;
	MyNewWindow=window.open("http://"+url,name,settings);
	MyNewWindow.focus();
}

function cmsPop(url, name, width, height, left, top){
	settings=
		"toolbar=no,location=no,directories=no,"+
		"status=no,menubar=no,scrollbars=yes,"+
		"resizable=yes,width="+width+",height="+height+", left="+left+", top="+top;
	MyNewWindow=window.open(url,name,settings);
	MyNewWindow.focus();
}
function cmsPop1(url, name, width, height, left, top){
	settings=
		"toolbar=yes,location=yes,directories=no,"+
		"status=no,menubar=yes,scrollbars=yes,"+
		"resizable=yes,width="+width+",height="+height+", left="+left+", top="+top;
	MyNewWindow=window.open(url,name,settings);
	MyNewWindow.focus();
}
function closePopup(){
	if(MyNewWindow){
		MyNewWindow.close()
		MyNewWindow=null
	}
}