function popup(url) { 
    var complete_URL = location.protocol + "//" + location.host + url;
    var popWindow = window.open(complete_URL, 'popWin','width=650,height=600,screenX=100,left=100,top=0,screenY=20,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
    popWindow.focus();
}
// small window
function popup_small(url) { 
    var complete_URL = location.protocol + "//" + location.host + url;
    var popWindow = window.open(complete_URL, 'popWin_small','width=400,height=400,screenX=200,left=200,top=150,screenY=150,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes');
    popWindow.focus();
}
// faq window
function popup_faq(url) { 
    var complete_URL = location.protocol + "//" + location.host + url;
    var popWindow = window.open(complete_URL, 'popWin_faq','width=400,height=400,screenX=200,left=200,top=150,screenY=150,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
    popWindow.focus();
}
// full-funcion browser window
function popup_full(url) { 
    var popFullWindow = window.open(url, 'popWin_full','width=650,height=535,screenX=200,left=200,top=20,screenY=20,location=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes');
    popFullWindow.focus();
}
function popup_asset_alloc() { 
var complete_URL = "/tools_info/asset_allocator/asset_alloc.html";
var newWin = window.open(complete_URL, 'new_window', 'width=660,height=535,screenX=100,left=100,top=50,screenY=50,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
  newWin.focus();
}
function openWindow(theURL,winName,targetName,features) { 
	eval(winName+"=window.open('"+theURL+"','"+targetName+"','"+features+"')")
}
	
function popup_demo(url) {
	var demoWin = window.open(url,'main','toolbar=yes,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=auto,width=800,height=600,left=50,screenX=50,top=20,screenY=20');		
	demoWin.focus();
}

// go to the page selected by dropdown menu
function popup_selected(newURL) {
  //--If the selected file name isn't blank, open up a new window and display the page
  if (newURL != "") {
	  if (newURL.charAt(0) == "/") {
	  	location.href = newURL;        // if internal link, just replace the current window
	  	} else {
		var jumpWindow = window.open(newURL, 'popWin_jump','width=650,height=535,screenX=200,left=200,top=70,screenY=70,location=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes');
		jumpWindow.focus();
		}
	}
}

// go to the page selected by dropdown menu
function visit(newURL) {
  //--If the selected file name isn't blank, replace the current page with it. 
  if (newURL != "") {
	location.href=newURL;
  }
}

function updateParent(newURL) {
opener.document.location = newURL;
}