<!--
function jumpMenu(targ,selObj,restore){ 
	
	if(selObj.options[selObj.selectedIndex].value!="")
	{
  		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
 		if (restore) selObj.selectedIndex=0;
	}
}


var url = window.location;
function mailThisUrl() {
	window.location = "mailto:?subject=National Savings %26 Investments&body=I thought you might find this page on the National Savings %26 Investments website interesting - please visit "+url;
   }

function selectHelpfulInfo() {
	if (''!=document.helpfulinformationform.helpfulinformation.value) {
		document.location=document.helpfulinformationform.helpfulinformation.value;
	}
}

function selectSavingsNeeds() {
	if (''!=document.savneedform.savneed.value) {
		document.location=document.savneedform.savneed.value;
	}
}


//------------------------------------------------------------
//window functions etc...


function launchCalc(theUrl,w,h){
	var winl = screen.availWidth/2 - w/2;
	var wint = screen.height/2 - h/2;
	var windowprops = "scrollbars=no,resizable=no,width="+w+",height="+h+",left="+winl+",top="+wint;
	calcPopup=window.open(theUrl,'taxCalc',windowprops);
	calcPopup.focus();
}


function launcherGetURL(theURL){
	
	//this has been changed - no longer go back to parent window
	//window.opener.navigate(theURL);
	//window.opener.location.replace(theURL);
	//window.opener.focus();
	
	var windowprops = "directories=yes,location=yes,toolbar=yes,menubar=yes,status=yes,scrollbars=yes,resizable=yes,width=500,height=650,left=20,top=20";
	window.open(theURL,'_blank',windowprops);
	
}


//------------------------------------------------------------

//write SWF functions

function writeFlash(swf,flashVarString,w,h,bgcolor,menu,mode,q){
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
   +'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '
   +'width="'+w+'" height="'+h+'" id="calc" align="" name="supercon" >'
   +'<param name="movie" value="'+swf+'">'
   +'<param name="menu" value="'+menu+'"> '
   +'<param name="quality" value="'+q+'"> '
   +'<param name="wmode" value="'+mode+'"> '
   +'<param name="bgcolor" value="'+bgcolor+'"> '
   +'<param name="flashvars" value="'+flashVarString+'"> '
   +'<embed src="'+swf+'" flashvars="'+flashVarString+'" menu="'+menu+'" quality="'+q+'" wmode="'+mode+'" '
   +' bgcolor="'+bgcolor+'" width="'+w+'" height="'+h+'" name="'+swf+'" '
   +' align=""  type="application/x-shockwave-flash" '
   +' pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> ');
}
//-->
