// JavaScript Document

function newWindow(mypage,myname,w,h,features) {
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';
	settings += features;
	win = window.open(mypage,myname,settings);
	win.window.focus();
}


function goto(form) {
	
	var index=frm_quicklinks.selectedPage.selectedIndex;
	
	if (frm_quicklinks.selectedPage.options[index].value != "0") {
		location=frm_quicklinks.selectedPage.options[index].value;
		}
}

/* not currently used */
/*
function WinOpen() {
  var url=document.redirect.selection.value;
  document.location.href=url;
}
*/


/* used in quoting */
function gotoURL() {
  var Current 			=  document.frmQuoting.redirectURL.selectedIndex;
  window.location.href 	=  document.frmQuoting.redirectURL.options[Current].value;
  return false;
}




// function to delete a request
function goToExternalURL(url,name)	 {
	if (confirm("Please note that you are leaving the AARP Financial website and going to " + name + ". We have supplied this link for your convenience.\n\nAARP Financial does not manage the content on the site you are going to\, and individual privacy policies may vary from site to site.\n\nPlease click Ok to continue to " + name + " or click Cancel to return to the previous page.")) {
	document.location.href = url;
	}
}


<!-- Idea by:  Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=250,left = 710,top = 414');");
}
// End -->


// JavaScript Document
function newWindow(mypage,myname,w,h,features) {
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';
	settings += features;
	win = window.open(mypage,myname,settings);
	win.window.focus();
}
