 
  function menu(width, height, loSrc, hiSrc) {
    this.hiLiteImage = new Image (width,height);
    this.hiLiteImageSRC = hiSrc;
    this.loLiteImage = new Image (width,height);
    this.loLiteImageSRC = loSrc;
  }
  
  function insertNewItem (name, width, height,  loSrc, hiSrc, URL) {
    menu[name] = new menu(width, height,  loSrc, hiSrc);
    document.write("<A HREF=\"" + URL + "\" ONMOUSEOVER=\"hiLite(\'" + name +"\')" 
	                                  + "\" ONMOUSEOUT=\"loLite(\'" + name +"\')\">" + 
		           "<IMG NAME=\"" + name + "\" SRC=\"" + loSrc + "\" WIDTH=" + width +
				   " HEIGHT=" + height + " BORDER=0></A>");
  }
  

  function hiLite( name ) {
    document[name].src = menu[name].hiLiteImageSRC;
  }
  
  function loLite( name ) {
    document[name].src = menu[name].loLiteImageSRC;

  }

  function closeIt() {
    close();
  }

function newWindow(contentsURL, winName, winProps, width, height) {
     	if (!winName) var winName = "Fitech";
	if (!winProps) var winProps = "menubar=0,toolbar=0,resizable=0,location=0,status=0,scrollbars=0";
	var x ; 
	var y ; 
	
	if (!width) var w = 180; 
	else w = width;
	
	if (!height) var h = 300;
	else h = height;
	
	x= (window.screen.width/2) - (w/2 + 10);
	y= (window.screen.height/2) - (h/2 + 10);
	
	if (x<0) x=0;
	if (y<0) y=0;
	
	var args = "width=" + w + ",height=" + h
	+ "," + winProps
	+ ",screenx=" + x + ",screeny=" + y
	+ ",left=" + x + ",top=" + y;
	var win = window.open(contentsURL, winName, args);
	win.focus();
}

function newWindow1(contentsURL, winName, winProps, width, height) {
     if (!winName) var winName = "Fitech";
     if (!winProps) var winProps = "menubar=0,toolbar=0,resizable=1,location=0,status=0,scrollbars=1";
     var x ; 
     var y ; 
     
     if (!width) var w = 180; 
     else w = width;
     
     if (!height) var h = 300;
     else h = height;
     
     x= (window.screen.width/2) - (w/2 + 10);
     y= (window.screen.height/2) - (h/2 + 10);
     
     if (x<0) x=0;
     if (y<0) y=0;
     
     var args = "width=" + w + ",height=" + h
      + "," + winProps
      + ",screenx=" + x + ",screeny=" + y
      + ",left=" + x + ",top=" + y;
     var win = window.open(contentsURL, winName, args);
	win.focus();
}

    function newWindow2(contentsURL, winName, winProps, width, height) {
     if (!winName) var winName = "Portfolio";
     if (!winProps) var winProps = "menubar=0,toolbar=0,resizable=1,location=0,status=0,scrollbars=1";
     if (!width) var w = 550; 
     else w = width;
     if (!height) var h = 338;
     else h = height;
     var x = 150; y = 150;
     var args = "width=" + w + ",height=" + h
      + "," + winProps
      + ",screenx=" + x + ",screeny=" + y
      + ",left=" + x + ",top=" + y;
     var win = window.open(contentsURL, winName, args);
	win.focus();
    }
    
function printPage(){
 if (window.print)
    window.print();
 else
    alert("Sorry, your browser doesn't support this feature. Please try by right click to the mouse, select Print");
}


var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1); 

function printPage2() {
  if (pr) 
    window.print()
  else if (da && !mac) 
    vbPrintPage()
  else 
    alert("Sorry, your browser doesn't support this feature.Please try by right click to the mouse, select Print");
  return false;
}

if (da && !pr && !mac) with (document) {
  writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
  writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
  writeln('Sub window_onunload');
  writeln('  On Error Resume Next');
  writeln('  Set WB = nothing');
  writeln('End Sub');
  writeln('Sub vbPrintPage');
  writeln('  OLECMDID_PRINT = 6');
  writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
  writeln('  OLECMDEXECOPT_PROMPTUSER = 1');
  writeln('  On Error Resume Next');
  writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
  writeln('End Sub');
  writeln('<' + '/SCRIPT>');
}





function printPage3(){
 if (window.print){
    parent.frames(0).print();
    parent.frames(1).print();
    parent.frames(2).print();
  }
 else
    alert("Sorry, your browser doesn't support this feature. Please try by right click to the mouse, select Print");
}

function mySubmit()
{
//check input

document.form1.submit();
}

function myReset()
{
 document.form1.reset();
}
function RRSPcalcReset()
{
 document.form1.r1.value="";
 document.form1.r2.value="";
 document.form1.r3.value="";
 document.form1.r4.value="";
 document.form1.r5.value=""; 
 document.form1.r6.selectedIndex=0;
 document.form1.b1[0].checked=true;
 document.form1.b2[0].checked=true;
 document.form1.r7.value="";
 document.form1.r8.value="";
 document.form1.r9.value="";
 document.form1.r10.selectedIndex=0;
}
function EarlyInvestReset()
{
 document.form1.r1.value="";
 document.form1.r2.value="";
 document.form1.r3.value="";
 document.form1.r4.value="";
 document.form1.r5.value=""; 
 document.form1.r6.value="";
 document.form1.r7.value=""; 
 document.form1.r8.value="";
 document.form1.r9.value=""; 
 document.form1.r10.value="";
 document.form1.r11.value=""; 
 document.form1.r12.value="";
 document.form1.r13.value=""; 
 document.form1.r14.value="";
 document.form1.r15.value=""; 
 document.form1.freq1.selectedIndex=0;
 document.form1.freq2.selectedIndex=0;
 document.form1.freq3.selectedIndex=0;
}
function InvRegDepReset()
{
 parent.top1.document.form1.r1.value="";
 parent.top1.document.form1.r2.value="";
 parent.top1.document.form1.r3.value="";
 parent.top1.document.form1.r4.value="";
 parent.top1.document.form1.r5.value="";
 parent.top1.document.form1.freq0.selectedIndex=0;
 parent.top1.document.form1.freq1.selectedIndex=0;
 parent.top1.document.form1.freq2.selectedIndex=0;
}
function InvRegWdrReset()
{
 parent.top1.enableall();
 parent.top1.document.frm1.r1.value="";
 parent.top1.document.frm1.r2.value="";
 parent.top1.document.frm1.r3.value="";
 parent.top1.document.frm1.r5.value="";
 parent.top1.document.frm1.r13.value="";
 parent.top1.document.frm1.r33.value="";
 parent.top1.document.frm1.freq1.selectedIndex=0;
 parent.top1.document.frm1.freq2.selectedIndex=0;
 parent.top1.document.frm1.radio1[0].checked=true;
 parent.top1.init();
}
function RespReset1()
{
 document.form1.name0.value="";
 document.form1.CurAge0.selectedIndex=0;
 document.form1.SchAge0.selectedIndex=3;
 document.form1.SchYrs0.selectedIndex=3;
 document.form1.ExResp0.value="";
 document.form1.ExOther0.value="";
 document.form1.RoR0.value="";


 if(document.form1.numkids.value>1)
 {
   document.form1.name1.value="";
   document.form1.CurAge1.selectedIndex=0;
   document.form1.SchAge1.selectedIndex=3;
   document.form1.SchYrs1.selectedIndex=3;
   document.form1.ExResp1.value="";
   document.form1.ExOther1.value="";
   document.form1.RoR1.value="";
 }
 if(document.form1.numkids.value>2)
 {
   document.form1.name2.value="";
   document.form1.CurAge2.selectedIndex=0;
   document.form1.SchAge2.selectedIndex=3;
   document.form1.SchYrs2.selectedIndex=3;
   document.form1.ExResp2.value="";
   document.form1.ExOther2.value="";
   document.form1.RoR2.value="";
 }
 if(document.form1.numkids.value>3)
 {
   document.form1.name3.value="";
   document.form1.CurAge3.selectedIndex=0;
   document.form1.SchAge3.selectedIndex=3;
   document.form1.SchYrs3.selectedIndex=3;
   document.form1.ExResp3.value="";
   document.form1.ExOther3.value="";
   document.form1.RoR3.value="";
 }
 
}

function RespReset2()
{
 document.form1.Prov0.selectedIndex=0;
 newProv(document.form1.Prov0, document.form1.Tuition0, document.form1.RoomBrd0)
 document.form1.InfoT.value="0.00";
 document.form1.InfoRB.value="0.00";
 document.form1.TaxR.value="0.00";
 document.form1.radio1[0].checked=true;

 if(document.form1.numkids.value>1)
 {
   document.form1.Prov1.selectedIndex=0;
   newProv(document.form1.Prov1, document.form1.Tuition1, document.form1.RoomBrd1)
 }
 if(document.form1.numkids.value>2)
 {
   document.form1.Prov2.selectedIndex=0;
   newProv(document.form1.Prov2, document.form1.Tuition2, document.form1.RoomBrd2)
 }
 if(document.form1.numkids.value>3)
 {
   document.form1.Prov3.selectedIndex=0;
   newProv(document.form1.Prov3, document.form1.Tuition3, document.form1.RoomBrd3)
 }
}

function RespReset3()
{
 document.form1.SelectedContrib0.value="";

 if(document.form1.numkids.value>1)
 {
   document.form1.SelectedContrib1.value="";
 }
 if(document.form1.numkids.value>2)
 {
   document.form1.SelectedContrib2.value="";
 }
 if(document.form1.numkids.value>3)
 {
   document.form1.SelectedContrib3.value="";
 }
}
function RespRestart()
{
 location="RespStart.jsp";
}
function RloanReset()
{
 document.form1.r1.value="";
 document.form1.r2.value="";
 document.form1.r11.value="";
 document.form1.r12.value="";
 document.form1.r4.value="";
 document.form1.r5.value="";
 document.form1.r6.value="";
 document.form1.r7.value="";
 document.form1.r8.value="";
 document.form1.r9.value="";
 document.form1.r91.value="";
 document.form1.r92.value="";
}
function RllReset()
{
  document.mm1.b2[0].checked=true;
  document.mm1.b4[0].checked=true;
  document.mm3.r1.value="";
  document.mm3.r4.value="";
  document.mm4.r6.value="";
  document.mm4.r2.value="";
  document.artists.artist.selectedIndex=0;
  document.artists.r5.value="";
  enable(document.myForm1.txt1);
  enable(document.myForm1.txt2);
  enable(document.myForm1.txt3);
  enable(document.myForm1.txt4);
  enable(document.myForm1.txt5);
  document.myForm1.txt1.value="";
  document.myForm1.txt2.value="";
  document.myForm1.txt3.value="";
  document.myForm1.txt4.value="";
  document.myForm1.txt5.value="";
  disable(document.myForm1.txt1);
  disable(document.myForm1.txt2);
  disable(document.myForm1.txt3);
  disable(document.myForm1.txt4);
  disable(document.myForm1.txt5);
  reshow1(document.artists.artist);
  document.track.names.selectedIndex=0;
  document.track.freq2.selectedIndex=0;
  myoper();
}


