//Javascript Document

//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
//JAVASCRIPT FOR THE SOURCE
// to add new story, just add sourceItem entry below
// title is the headline
// desc is the short description of the article
// change active to 0 to remove, back to 1 to post

//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\

var sourceItem = new Array();
sourceItem[0] = {
	title:"Colored Concrete Enhances Willowbrook Mall Project",
	desc:"More architects are specifying integrally colored concrete to add interest and defining detail to their designs. A recent Prairie project in the Chicago suburbs highlights the beauty and utility of this material.",
	active:1
};
sourceItem[1] = {
	title:"Harnessing the Wind",
	desc:"Prairie forms new division devoted to wind farm construction.<br />",
	active:1
};
sourceItem[2] = {
	title:"Power Threads",
	desc:"Prairie's fiber-rich concrete mix delivers strength and labor savings at urban water treatment plant.",
	active:1
};
sourceItem[3] = {
	title:"Black-to-White Saves Major Green for FedEx",
	desc:"Find out why Federal Express chose concrete over asphalt for its mammoth new parking lot in Bedford Park. Hint: How does 50c savings times nearly 1.1 million square feet sound?",
	active:1
};
sourceItem[4] = {
	title:"Pritzker Park: green gem in the heart of the city",
	desc:"Contractor Speedy Gonzales teams with Prairie to create this serene, eco-friendly space amid the hustle and bustle of Chicago's Loop.",
	active:1
};
sourceItem[5] = {
	title:"Prairie Supports Returning Vets",
	desc:"Prairie has signed on with the U.S. Army Reserve and National Guard to offer job opportunities for vets through the Helmets to Hardhats program.",
	active:1
};
sourceItem[6] = {
	title:"Curves Ahead",
	desc:"With a fa&sigmaf;ade shaped by 971 rippling balconies - no two exactly alike - Chicago's Aqua tower posed sky-high challenges for James McHugh Construction. See how Prairie's partnership helped McHugh achieve a brilliant finish.",
	active:1
};
sourceItem[7] = {
	title:"Building On Our Strengths",
	desc:"UK native David Plummer brings a global perspective to his new role as president of Prairie Material. Reporting on his first 60 days, he outlines how the company will help customers take full advantage of the opportunities ahead.",
	active:1
};
sourceItem[8] = {
	title:"Wisconsin: What's In a (New) Name?",
	desc:"Central Ready Mixed and Ottawa Ready Mix have officially changed their names to Prairie Material. Everything's the same, says General Manager Todd Schaller - except that now, Wisconsin customers will have an even broader range of products and technical expertise to draw on.",
	active:1
};
sourceItem[9] = {
	title:"Going Deep",
	desc:"Below Milwaukee's Streets, an expanded deep tunnel system handles storm overflow and protects Lake Michigan. Learn how Central Ready Mixed, a Prairie company, partnered with builder Shea-Kenny to make it happen.",
	active:1
};
sourceItem[10] = {
	title:"Redi When You Are",
	desc:"Need to fill a void - fast? Prairie's Redi-Fill&reg; puts you on solid ground in minutes. Find out how this flowable backfill solved problems at Fermilab, the Indianapolis Airportand more key sites.",
	active:1
};
sourceItem[11] = {
	title:"Built to Last",
	desc:"Stark Excavating wins business by recommending concrete paving for Alexander Lumber's new yard in Champaign, Illinois. See how the switch cut first-dollar costs and delivered lasting quality.",
	active:1
};
sourceItem[12] = {
	title:"World's Top Skyscraper",
	desc:"Prairie salutes James McHugh Construction of Chicago, builder of Aqua, the 81-story beauty named Skyscraper of the Year 2009 by Emporis. Trump Tower, also a McHugh building, ranked No. 5 on Emporis' worldwide list.",
	active:1
};
sourceItem[13] = {
	title:"Powering Up in Indiana",
	desc:"F.A. Wilhelm Construction builds one of the world's cleanest coal-fired power plants with 165,000 yards of Prairie concrete.",
	active:1
};
sourceItem[14] = {
	title:"In Living Color",
	desc:"Willkomm Excavating of Wisconsin uses decorative concrete to enhance a vibrant city neighborhood.",
	active:1
};
sourceItem[15] = {
	title:"Touch a Truck",
	desc:"Prairie teams up with the Kohl Children's Museum of Greater Chicago to deliver hands-on education for kids.",
	active:1
};
sourceItem[16] = {
	title:"More Mileage from Every Mile",
	desc:"Learn how the Village of Streamwood, Illinois is building stronger roads at lower costs with roller-compacted concrete (RCC) from Prairie.",
	active:1
};
sourceItem[17] = {
	title:"Streets Alive",
	desc:"Durable concrete walks revitalize a key business district on Milwaukee's Near South Side.<br />",
	active:1
};
sourceItem[18] = {
	title:"Hoop Dreams",
	desc:"Weddle Brothers Construction and Prairie help build the future of Hoosier basketball.<br />",
	active:1
};
sourceItem[19] = {
	title:"New Partnership in Michigan",
	desc:"Prairie President David Plummer announces a joint venture with Edw. C. Levy, combining the strengths of both organizations to serve ready mix customers in Michigan.",
	active:1
};
sourceItem[20] = {
	title:"Green Revolution",
	desc:"Energy Smart Home Builders, LLC creates the nation's first planned community of homes that generate as much energy as they use each year. ",
	active:1
};
sourceItem[21] = {
	title:"Home Sweet Home",
	desc:"In Bloomington, Indiana, Jill's House eases the journey for cancer patients and their loved ones - with generous support from Prairie.",
	active:1
};
sourceItem[22] = {
	title:"Bring it On!",
	desc:"Here are the winter-weather challenges we're ready to help you conquer.<br />",
	active:1
};
sourceItem[23] = {
	title:"Light for Height",
	desc:"A look at soaring new landmarks that use lightweight concrete for floor decks and more. Plus, the best practices that ensure success with lightweight mixes.",
	active:1
};
sourceItem[24] = {
	title:"Fast and Safe, Every Day",
	desc:"No matter what time or technical demands we face on the job, Prairie people make accident prevention a top priority. Learn how we're working together to ensure our team's safety - and yours.",
	active:1
};
sourceItem[25] = {
	title:"Championship Floors",
	desc:"In honor of March Madness, a tour of the prestigious courts that rest on Prairie concrete - and ways our customers use the same skills and mixes to create high-performance floors for business and industry.",
	active:1
};
sourceItem[26] = {
	title:"We're Taking COMMAND",
	desc:"Now, Prairie's customer service team fills your concrete order through a powerful new system that streamlines deliveries as it checks each mix for quality and accuracy. Learn more about the ways we're working to deliver superior service for you.",
	active:1
};
sourceItem[27] = {
	title:"Prairie President Joins NRMCA Board",
	desc:"David Plummer looks forward to his new role with the National Ready Mixed Concrete Association.",
	active:1
};
sourceItem[28] = {
	title:"Rebuilding Hope",
	desc:"See how caring contractors are opening doors for injured veterans returning from Iraq and Afghanistan.",
	active:1
};
sourceItem[29] = {
	title:"Going Green",
	desc:"An Illinois city protects local waterways by repaving alleys with Prairie's StormHandler&reg;  pervious concrete.",
	active:1
};
sourceItem[30] = {
	title:"Natural Wonder",
	desc:"A landmark water management project refreshes the heart of historic Champaign, Illinois.<br />",
	active:1
};
sourceItem[31] = {
	title:"Grand Slam",
	desc:"Best way to build a batting cage?  Prairie shows contractors and engineers how -- and an Illinois high school benefits.",
	active:1
};
sourceItem[32] = {
	title:"A Better Way to Pave",
	desc:"Municipalities learn about RCC in a live demo hosted by Prairie, APWA and Orange Crush.<br />",
	active:1
};
sourceItem[33] = {
	title:"Teeing It Up With Whitetopping",
	desc:"Crumbling cart paths get an upgrade.<br />",
	active:1
};
sourceItem[34] = {
	title:"Sustainable U",
	desc:"A sleek new IT center at Indiana University proves that green can be beautiful - and functional.<br />",
	active:1
};
sourceItem[35] = {
	title:"No Place Like Home",
	desc:"Construction partners in Central Illinois bring comfort to a little boy fighting for his life.<br /> ",
	active:1
};
sourceItem[36] = {
	title:"Inner Strength",
	desc:"Fiber-enriched concrete brings speed and savings to health care construction.",
	active:1
};
sourceItem[37] = {
	title:"Attention Shoppers",
	desc:"A bold new exhibit sheds light on sustainable choices.",
	active:1
};

//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\

//change oldestStory to higher number to cut off old stories
var oldestStory = 0;

//number of Source stories posted in the News Column 
var ncSources = 1;

//represents latest story, don't edit
var latestStory = (sourceItem.length-1)

//generates 0 before single digit numbers, don't edit
function pad2(number) {
   
     return (number < 10 ? '0' : '') + number;
   
};

/*function ncBuildSource() {
	document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"ncSourceTable\"><tr><td width=\"77\"><a href=\"/news/news_" + pad2(latestStory) + ".asp\"><img src=\"/news/thumbs/t" + pad2(latestStory) + ".jpg\" alt=\"news image 1\" name=\"newsImage1\" width=\"77\" height=\"77\" /></a></td><td valign=\"middle\" class=\"ncTitle\"><a href=\"/news/news_" + pad2(latestStory) + ".asp\">" + sourceItem[latestStory].title + "</a></td></tr></table><div class=\"ncSourceDesc\">" + sourceItem[latestStory].desc + " <a href=\"/news/news_" + pad2(latestStory) + ".asp\">More></a></div></div>")
};
*/
function ncBuildSource() {
	for (var z=0; z< (ncSources); z++) 
	{
		document.write("<div class=\"ncSource\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"ncSourceTable\"><tr><td width=\"77\"><a href=\"/news/news_" + pad2(latestStory) + ".asp\"><img src=\"/news/thumbs/t" + pad2(latestStory) + ".jpg\" alt=\"news image 1\" name=\"newsImage1\" width=\"77\" height=\"77\" /></a></td><td valign=\"middle\" class=\"ncTitle\"><a href=\"/news/news_" + pad2(latestStory) + ".asp\">" + sourceItem[latestStory].title + "</a></td></tr></table><div class=\"ncSourceDesc\">" + sourceItem[latestStory].desc + " <a href=\"/news/news_" + pad2(latestStory) + ".asp\">More></a></div></div>");
		latestStory--;
	};
};
function buildNews(){

	for (var n=(sourceItem.length - (1 + ncSources)); n >= oldestStory; n--) {
		if (sourceItem[n].active == 1){
			document.write("<div class=\"newsEntry\"><img src=\"thumbs/t" + pad2(n) + ".jpg\" width=\"84\" height=\"84\" /><a class=\"headline\" href=\"/news/news_" + pad2(n) + ".asp\">" + sourceItem[n].title + "</a>" + sourceItem[n].desc + " <a class=\"storyLink\" href=\"/news/news_" + pad2(n) + ".asp\">read more></a></div> ");
		};
	};
};

//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\


/////////////////OTHER JAVASCRIPT///////////////////////

function checkQForm(){

	if (document.qData.Fname.value == ""){
		alert ("Please enter your first name.");
		document.qData.Fname.focus();
		return false;
	}
	if (document.qData.Lname.value == ""){
		alert ("Please enter your last name.");
		document.qData.Lname.focus();
		return false;
	}
	/*else if (document.qData.bisname.value == ""){
		alert ("Please enter the name of your business.");
		document.qData.bisname.focus();
		return false;
	}
	else if (document.qData.address.value == ""){
		alert ("Please enter address.");
		document.qData.address.focus();
		return false;
	}
	else if (document.qData.city.value == ""){
		alert ("Please enter city.");
		document.qData.city.focus();
		return false;
	}
	else if (document.qData.state.value == ""){
		alert ("Please enter state.");
		document.qData.state.focus();
		return false;
	}
	else if (document.userData.zip.value == ""){
		alert ("Please enter zip code.");
		document.qData.zip.focus();
		return false;
	}
	else if (document.userData.ph.value == ""){
		alert ("Please enter phone number.");
		document.qData.ph.focus();
		return false;
	}*/
	else if (document.qData.email.value == ""){
		alert ("Please enter your email address.");
		document.qData.email.focus();
		return false;
	}


	else{
		return true;
	}
}

/////////
function checkCForm(){

	if (document.cData.Fname.value == ""){
		alert ("Please enter your first name.");
		document.cData.Fname.focus();
		return false;
	}
	if (document.cData.Lname.value == ""){
		alert ("Please enter your last name.");
		document.cData.Lname.focus();
		return false;
	}
	else if (document.cData.email.value == ""){
		alert ("Please enter your email address.");
		document.cData.email.focus();
		return false;
	}


	else{
		return true;
	}
}

/////////////////

function fwSel () {
	document.getElementById("flatwork").style.display = "block";
	document.getElementById("columns").style.display = "none";
	document.getElementById("footings").style.display = "none";
}
function coSel () {
	document.getElementById("flatwork").style.display = "none";
	document.getElementById("columns").style.display = "block";
	document.getElementById("footings").style.display = "none";
}
function fgSel () {
	document.getElementById("flatwork").style.display = "none";
	document.getElementById("columns").style.display = "none";
	document.getElementById("footings").style.display = "block";
}



/*////////////////////////////////FLATWORK/////////////////////////////*/
function calcFW1(fwtText, fwwfText, fwwiText, fwlfText, fwliText)
{
	var fwt = Math.round(fwtText);
	var	fwwf = Math.round(fwwfText);
	var	fwwi = Math.round(fwwiText);
	var	fwlf = Math.round(fwlfText);
	var	fwli = Math.round(fwliText);

	if (isNaN(fwt) || fwt<0 || fwt==""){
		fwt = 0;
		window.document.fwForm.fwThick.value = 0;
	}
	if (isNaN(fwwf) || fwwf<0 || fwwf==""){
		fwwf = 0;
		window.document.fwForm.fwWidthf.value = 0;
	}
	if (isNaN(fwwi) || fwwi<0 || fwwi==""){
		fwwi = 0;
		window.document.fwForm.fwWidthi.value = 0;
	}		
	if (isNaN(fwlf) || fwlf<0 || fwlf==""){
		fwlf = 0;
		window.document.fwForm.fwLengthf.value = 0;
	}	
	if (isNaN(fwli) || fwli<0 || fwli==""){
		fwli = 0;
		window.document.fwForm.fwLengthi.value = 0;
	}	
		calcFW2(fwt, fwwf, fwwi, fwlf, fwli);
}

function calcFW2(fwt, fwwf, fwwi, fwlf, fwli){
	var fww = (fwwf * 12) + fwwi;
	var fwl = (fwlf * 12) + fwli;
	var fwTot = (([fwt] * [fww] * [fwl]) / 1728) / 27;

	if (isNaN(fwt) || fwt<0.01 || fwt==""){
		alert("Please enter a numeric thickness");
		fwForm.fwThick.focus();
		return false;
	}	
	else if (fww == 0){
		alert("Please enter a numeric width");
		fwForm.fwWidthf.focus();
		return false;
	}
	else if (fwl == 0){
		alert("Please enter a numeric length");
		fwForm.fwLengthf.focus();
		return false;
	}
	else{
		window.document.fwForm.fwTotal.value = Math.round(fwTot*100)/100;
		return true;
	}

}

/*////////////////////////////////COLUMNS/////////////////////////////*/
function calcCO1(cowfText, cowiText, colfText, coliText)
{
	var	cowf = Math.round(cowfText);
	var	cowi = Math.round(cowiText);
	var	colf = Math.round(colfText);
	var	coli = Math.round(coliText);

	if (isNaN(cowf) || cowf<0 || cowf==""){
		cowf = 0;
		window.document.coForm.coWidthf.value = 0;
	}
	if (isNaN(cowi) || cowi<0 || cowi==""){
		cowi = 0;
		window.document.coForm.coWidthi.value = 0;
	}		
	if (isNaN(colf) || colf<0 || colf==""){
		colf = 0;
		window.document.coForm.coLengthf.value = 0;
	}	
	if (isNaN(coli) || coli<0 || coli==""){
		coli = 0;
		window.document.coForm.coLengthi.value = 0;
	}	
		calcCO2(cowf, cowi, colf, coli);
}

function calcCO2(cowf, cowi, colf, coli){
	var cow = ((cowf * 12) + cowi)/2;
	var col = (colf * 12) + coli;
	var coTot = ((Math.PI * Math.pow(cow, 2) * col)  / 1728) / 27;

	if (cow == 0){
		alert("Please enter a numeric diameter");
		coForm.coWidthf.focus();
		return false;
	}
	else if (col == 0){
		alert("Please enter a numeric height");
		coForm.coLengthf.focus();
		return false;
	}
	else{
		window.document.coForm.coTotal.value = Math.round(coTot*100)/100;
		return true;
	}

}


/*////////////////////////////////FOOTINGS/////////////////////////////*/

function calcFG1(fgtfText, fgtiText, fgwfText, fgwiText, fglfText, fgliText)
{
	var fgtf = Math.round(fgtfText);
	var fgti = Math.round(fgtiText);
	var	fgwf = Math.round(fgwfText);
	var	fgwi = Math.round(fgwiText);
	var	fglf = Math.round(fglfText);
	var	fgli = Math.round(fgliText);

	if (isNaN(fgtf) || fgtf<0 || fgtf==""){
		fgtf = 0;
		window.document.fgForm.fgThickf.value = 0;
	}
	if (isNaN(fgti) || fgti<0 || fgti==""){
		fgti = 0;
		window.document.fgForm.fgThicki.value = 0;
	}
	if (isNaN(fgwf) || fgwf<0 || fgwf==""){
		fgwf = 0;
		window.document.fgForm.fgWidthf.value = 0;
	}
	if (isNaN(fgwi) || fgwi<0 || fgwi==""){
		fgwi = 0;
		window.document.fgForm.fgWidthi.value = 0;
	}		
	if (isNaN(fglf) || fglf<0 || fglf==""){
		fglf = 0;
		window.document.fgForm.fgLengthf.value = 0;
	}	
	if (isNaN(fgli) || fgli<0 || fgli==""){
		fgli = 0;
		window.document.fgForm.fgLengthi.value = 0;
	}	
		calcFG2(fgtf, fgti, fgwf, fgwi, fglf, fgli);
}

function calcFG2(fgtf, fgti, fgwf, fgwi, fglf, fgli){
	var fgt = (fgtf * 12) + fgti;
	var fgw = (fgwf * 12) + fgwi;
	var fgl = (fglf * 12) + fgli;
	var fgTot = (([fgt] * [fgw] * [fgl]) / 1728) / 27;

	if (fgt== 0){
		alert("Please enter a numeric depth");
		fgForm.fgThickf.focus();
		return false;
	}	
	else if (fgw == 0){
		alert("Please enter a numeric width");
		fgForm.fgWidthf.focus();
		return false;
	}
	else if (fgl == 0){
		alert("Please enter a numeric length");
		fgForm.fgLengthf.focus();
		return false;
	}
	else{
		window.document.fgForm.fgTotal.value = Math.round(fgTot*100)/100;
		return true;
	}

}






function focusTest(el)
{
   el.select();
}

/////////////
function aggRun(cText, lText, wText, dText, form){
	var ac = cText;
	var al = lText;
	var aw = wText;
	var ad = dText;
	var acc = ((al * aw) * (ad / 12)) * ac;
	var ace = acc / 2000;
	
	if (ac =="") {
		alert("Please select a type of aggregate");
		aCalc.aggType.focus();
		return false;
	}
	else if (isNaN(al) || al<0.01 || al==""){
		alert("Please enter a numeric length");
		aCalc.length.focus();
		return false;
	}	
	else if (isNaN(aw) || aw<0.01 || aw==""){
		alert("Please enter a numeric width");
		aCalc.width.focus();
		return false;
	}	
	else if (isNaN(ad) || ad<0.01 || ad==""){
		alert("Please enter a numeric depth");
		aCalc.depth.focus();
		return false;
	}	
	else {
		window.document.aCalc.calcResult.value = Math.round(ace*100)/100;
		return true;
	}
}

/*function calculateForm2()
{
	ll = eval(window.document.form2.length.value) * 12;
	ww = eval(window.document.form2.width.value) * 12;
	dd = eval(window.document.form2.depth.value);
	cubicyards = ((ll * ww * dd) / 1728) / 27;
 
	for (var i = 0; i < 3; i++) {
		if (window.document.form2.material[i].checked) {
			window.document.form2.tons.value = cubicyards / window.document.form2.material[i].value;
		}
	}
}
*/
////////////////////////
function setLocation(state,loc){
		isFrame = document.getElementById('listing');
		if(state == "IL1"){
			isFrame.src = 'illinois-list.html#'+loc;
		}
		if(state == "IL2"){
			isFrame.src = 'illinois-list.html#'+loc;
		}
		if(state == "IN"){
			isFrame.src = 'indiana-list.html#'+loc;
		}
		if(state == "MI"){
			isFrame.src = 'michigan-list.html#'+loc;
		}
		if(state == "W"){
			isFrame.src = 'wisconsin-list.html#'+loc;
		}
}


var fno = new Array();
fno[00] ="f00";
fno[01] ="f01";
fno[02] ="f02";
fno[03] ="f03";
fno[04] ="f04";
fno[05] ="f05";
fno[06] ="f06";
fno[07] ="f07";
fno[08] ="f08";
fno[09] ="f09";
fno[10] ="f10";
fno[11] ="f11";
fno[12] ="f12";
fno[21] ="f21";
fno[22] ="f22";
fno[23] ="f23";
fno[24] ="f24";
fno[25] ="f25";
fno[26] ="f26";
fno[27] ="f27";
fno[28] ="f28";
fno[29] ="f29";
fno[20] ="f20";
fno[21] ="f21";
fno[22] ="f22";

var lid = new Array();
lid[00] ="l00";
lid[01] ="l01";
lid[02] ="l02";
lid[03] ="l03";
lid[04] ="l04";
lid[05] ="l05";
lid[06] ="l06";
lid[07] ="l07";
lid[08] ="l08";
lid[09] ="l09";
lid[10] ="l10";
lid[11] ="l11";
lid[12] ="l12";
lid[21] ="l21";
lid[22] ="l22";
lid[23] ="l23";
lid[24] ="l24";
lid[25] ="l25";
lid[26] ="l26";
lid[27] ="l27";
lid[28] ="l28";
lid[29] ="l29";
lid[20] ="l20";
lid[21] ="l21";
lid[22] ="l22";

var rid = new Array();
rid[00] ="r00";
rid[01] ="r01";
rid[02] ="r02";
rid[03] ="r03";
rid[04] ="r04";
rid[05] ="r05";
rid[06] ="r06";
rid[07] ="r07";
rid[08] ="r08";
rid[09] ="r09";
rid[10] ="r10";
rid[11] ="r11";
rid[12] ="r12";
rid[21] ="r21";
rid[22] ="r22";
rid[23] ="r23";
rid[24] ="r24";
rid[25] ="r25";
rid[26] ="r26";
rid[27] ="r27";
rid[28] ="r28";
rid[29] ="r29";
rid[20] ="r20";
rid[21] ="r21";
rid[22] ="r22";


function addForm(formNum){
    document.getElementById(fno[formNum]).style.display = 'block';
    document.getElementById(lid[formNum]).style.display = 'none';
    document.getElementById(rid[formNum]).style.display = 'none';
  }
function removeForm(formNum){
    document.getElementById(fno[formNum]).style.display = 'none';
    document.getElementById(lid[formNum]).style.display = 'inline';
    document.getElementById(rid[formNum]).style.display = 'inline';
  }
  
function referE(employee) {
  if (employee=="Employee Referral") { // please select - possibly you want something else here
  document.getElementById('refEmpName').style.display = 'block';
  }
	else{
  	document.getElementById('refEmpName').style.display = 'none';
	}
}

//JAVASCRIPT FOR PRELOADING HEADER BTN
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
 
