


/*	WINDOW opening routines
	created: Steve Evans 6/12/00 

There are several types of pop up windows. Each of the routines below calls the
	style-specific window. The window name determines the target window. 
	If window "plain" is open, all pop ups using "plain" name will open in that window, but resize it.
	The popup(myurl) and launchEFFS() both call a file that parses the myurl 
	to determine what url is actually used
	all others use the passed myurl to open that file into a pop up window.
	Each opens the window definition into remote and calls openwindow to do the actual object loggin and resizing.

*/

// launch EFFS from Front Page only
function launchEFFSFP(myurl,page,toolbar) {
	if (toolbar=="yes")
    {
        remote = window.open("../popups/effslauncher.asp?whereto=" + myurl + "&Page=" + page,"EFFS");
    }
	else
	{
		remote = window.open("/popups/effslauncher.asp?whereto=../" + myurl + "&Page=" + page,"EFFS");
	}
	openwindow(remote,500,620,0);
}

// launch EFFS from all other pages
function launchEFFS(myurl,page) {
	remote = window.open("../popups/effslauncher.asp?whereto=" + myurl + "&Page=" + page,"EFFS");
	openwindow(remote,715,470,0);
}

// launch Secure Email Form
function Email(){
	var which = "https://www.ent.com/contact/scontactform.asp";
	remote = window.open(which);
	openwindow(remote,400,400,1);
}


// launches the pop up window with the bottom frame saying "EFCU has launched you to..."
function popup(myurl) {
	var which = "../popups/launch.asp?L=" + myurl
	remote = window.open(which, "PopUp");
	openwindow(remote,600,600,0);
}

// launches the pop up window for the seminar RSVP with the bottom frame saying "EFCU has launched you to..."
function rsvp(seminar) {
	var which = "../popups/rsvp.asp?L=" + seminar
	remote = window.open(which, "PopUp");
	openwindow(remote,500,600,0);
}

// launches the pop up window for the seminar Cancel Reservation with the bottom frame saying "EFCU has launched you to..."
function cancel(seminar) {
	var which = "../popups/cancel.asp?L=" + seminar
	remote = window.open(which, "PopUp");
	openwindow(remote,500,620,0);
}



// launches a sercure pop up window for the Apply Now Loan App
function launchApply(myurl) {
	//myurl = "https://www.entfederal.com/popups/apply.asp"
	remote = window.open(myurl,"Secure");
	openwindow(remote,500,470,1);
}

// launches a secure pop up window for the Apply Now Loan App
function popupSecure(myurl) {
	//myurl = "https://www.entfederal.com/popups/apply.asp"
	myurl = "https://" + document.domain + "/popups/launch.asp?S=1&L=" + myurl;
	remote = window.open(myurl,"Secure");
	openwindow(remote,300,300,1);
}

function popupCrex(myurl) {
	myurl = "https://www.entfederal.com/popups/crex.asp"
	remote = window.open(myurl,"Secure");
	openwindow(remote,740,470,1);
}


function launchamortizationtable(myurl) {
	remote = window.open(myurl, "Plain");
	openwindow(remote,700,470,0);
}


function launchfooter(myurl) {
		remote = window.open(myurl, "Plain");
		openwindow(remote,700,470,0);
}

function launchmap(){
	var myurl = "../map/index.asp";
	remote = window.open(myurl, "Plain");
	openwindow(remote,700,600,0);
	
}

// this routine does the actual Window controlling
function openwindow(remote,w,h,resno) {
	if (remote.opener == null) remote.opener = window; 
	remote.opener.name = "opener";
	if (resno==0) {remote.resizeTo(w,h)};
	remote.focus();
}
