var ID="think2000";
var ID2="32303&302E3&322E3&35";
//Loan calculator custom lines ---------------------
var line1="Try entering a 'Monthly Payment' instead";
var line2="of a 'Loan Amount.' This way, when you";
var line3="click [Calculate], you'll see how much you";
var line4="may be able to borrow for a given payment.";
var line5="Caution: Only borrow as much as you need.";
var bgFile="";
var bgcolor="fbfafe";
var bordcolor="feb300";
var buttoncolor="000069";
var stafford="5.6";
var plus="8.5";
var perkins="5.0";
var otherLoan="0";
var otherLoanName="Other";
var rheader="r8Banner.gif";
var inflation="5";
var savingsRate="7";
var borrowRate="8.5";
var header="d8Banner.gif";
var initials="Early Estimate";
var bannerLink="";
var bannerMsg="";
var fmmsg=" You may not receive financial aid at some schools.bunbunbun4";
fmmsg+=" However, please continue through the next fewbunbunbun4";
fmmsg+=" screens anyway--to see the effect of savingbunbunbun4";
fmmsg+=" (and borrowing). And, when the time comes, filebunbunbun4";
fmmsg+=" your aid applications! This is how you can qualifybunbunbun4";
fmmsg+=" for education loans and, perhaps, merit aid.bunbunbun4";
fmmsg+="bunbunbun4";
var beenhereFMmessage =fmmsg;
var beenhereIMmessage =fmmsg;
var beenhereFMIMmessage =fmmsg;
var hiPrivName="Hi$Priv";
var hiPrivVal="50,700";
var hiPubName="StateColl";
var hiPubVal="18,200";
var ComColFld="CommColl";
var ComColCostFld="14,000";
var PubColFld="PublicU";
var PubColCostFld="21,300";
var MidColFld="Mid$Priv";
var MidColCostFld="38,800";
var gap="2000";
var studentincome="0";
var reportCutLine="Developed by Think Ahead, LLC. for College Foundation of North Carolina, © 2009.  All rights reserved.";
var aBackground="fefefe";
var hBackground="fefefe";
var lBackground="fefea8";
var wiBackground="ffffff";
var rBackground="fefea8";
var FreshDepMinContrib="1750";
var OtherDepMinContrib="2350";
var IndepMinContrib="3300";

//Links --------------------- Note syntax of \"> between url and label
var link1="http://www.cfnc.org/\">College Foundation of North Carolina";
var link2="";
var link3="";
var link4="";
var link5="";
var link6="";
var link7="";
var link8="";
var link9="";
var link10="";
//----------------------------------------

var nameID="C129";
var title="Estimator v.16.0 for 2010 © 2009, Think Ahead, LLC. All rights reserved.";

var title2="Estimator v.16.0 for 2010  © 2009, Think Ahead, LLC. All rights reserved.";

var state="NC";
//----------------------------------------
 setTimeout("parent.resizeTo(800,700)",500);

var f="",h="",e="",c="";
var win80=null;
var tmo;
var thetitle="Title";
function check4()
{
if(document.save.start4.value=="1")
	getCac1();
else
	tmo=setTimeout("check4()",1000);
}
function getFrames()
{
f="<frameset ID=\"reportframe\" rows=\"0%,0%,0%,100\" FRAMEBORDER=0 FRAMESPACING=0 onLoad=\"done=true\"  onUnload=\"stopit()\">\n";
f+="   <frame name=\"guidePage\" src=\"helpFrame.html\" scrolling=\"no\",noresize marginheight=\"0\">\n";
f+="   <frame name=\"infoPage\" src=\"customFrame.html\" scrolling=\"no\",noresize marginheight=\"0\">\n";
f+="   <frame name=\"reportPage\" src=\"reportFrame.html\" scrolling=\"no\",noresize marginheight=\"0\">\n";
f+="   <frameset rows=\"105,*\" FRAMEBORDER=0>\n";
f+="        <frame name=\"message\" src=\"cacHeader.html\" scrolling=\"no\",noresize marginheight=\"3\">\n";
f+="        <frameset cols=\"61%,*\" FRAMEBORDER=0  FRAMESPACING=0>\n";
f+="			<frameset ID=\"dataframe\" rows=\"0%,100%\"  FRAMEBORDER=0  FRAMESPACING=0>\n";

f+="                <frame name=\"cacPages\" src=\"cac80"+nameID+"page.html\" SCROLLING=\"no\" NORESIZE marginheight=0 MARGINWIDTH=0>\n";
f+="				<frame name=\"ZERO\" src=\"wait"+nameID+"Page.html\" SCROLLING=\"no\" marginheight=\"0\" NORESIZE >\n";
f+="			</frameset>\n";

f+="            <frameset rows=\"60%,40%\"  FRAMEBORDER=0  FRAMESPACING=0>\n";
f+="				<frameset name=\"helpControl\" cols=\"90%,10%\" FRAMEBORDER=0  FRAMESPACING=0>\n";
f+="					<frame name=\"help\" src=\"cac80Help.html\" SCROLLING=\"no\" NORESIZE>\n";
f+="					<frame name=\"helpScroll\" src=\"vscroll.html\" SCROLLING=\"no\" NORESIZE marginheight=\"0\">\n";;	
f+="				</frameset>\n";
f+="				<frame name=\"EFC\" src=\"EFC.html\" SCROLLING=\"no\" NORESIZE marginheight=\"0\">\n";
f+="			</frameset>\n";


f+="        </frameset>\n";
f+="   </frameset>\n";
f+="</frameset>\n";
f+="</HTML>\n";return f;
}

function getCac1()
{
self.blur();
clearTimeout(tmo)
if(badversion)
	{
	document.save.quit.value=2;
	self.close();
	return;
	}
getCac()
}
function getCac2()
{
if(document.save.code.value < "4")//wait for exe to record user level
	{
	getCac();
	return;
	}
setTimeout("getCac2()",1000);
}
////////////////////
function getCac()
{
if(navigator.appVersion.charAt(0) < "4")
	{
	self.location.href="cac5browsers.html";
	}
	var w=screen.availWidth;
	var h=screen.availHeight;
	 win80=window.open("cac80frame.html","cacmain80","WIDTH=640,HEIGHT=430");
	w=(w-640)/2;
	h=(h-480)/2;
	win80.moveTo(w,h);
	setTimeout("win80.document.title=title2",4000);
	document.save.minimum.value=1;
}
//Called from cacHeader.htmlq
function getHeader()
{
h+="</head>"
if(bgFile!="")
	h+="<body BACKGROUND=\""+bgFile+"\">\n";
else
	h+="<body BGCOLOR=\""+"#"+rBackground+"\">\n";
	h+="<center><img src=\""+header+"\" border=\"0\"></center>\n";
h+="</body>\n";
h+="</html>\n";
return h;
}
//Called from EFC display page EFC.html to load rest of page
function getEFC()
{
e="</HEAD>\n";
if(bgFile!="")
	e+="<body BACKGROUND=\""+bgFile+"\">\n";
else
	e+="<body BGCOLOR=\""+"#"+lBackground+"\">\n";
e+="<center><table border=1 bordercolor=\""+"#"+bordcolor+"\">\n";
e+="<tr><td bgcolor=\""+"#"+wiBackground+"\">\n";
e+="<applet\n";
e+="    code=\"cac80EFC.class\"\n";
e+="    name=\"cac80EFC\"\n";
e+="	archive=\"cac80EFC.jar\"\n";
e+="    width=\"220\"\n";
e+="    height=\"110\" >\n";
e+="<PARAM NAME=backgroundColor VALUE=\""+wiBackground+"\">\n";
e+="<PARAM NAME=buttoncolor VALUE=\""+buttoncolor+"\">\n";
e+="</applet>\n";
e+="</td></tr>\n";
e+="</table></center>\n";
e+="</BODY>\n";
e+="</HTML>\n";
return e;
}

function stopit()
{
self.close();
}
function getStartImage()
{
if(document.startit.src.indexOf("calc.gif")!=-1)
	{
	self.blur();
	win80.focus();
return true; //already running
	}
else
	{
	return false;
	}
}