/*
			function HideContent(d) {
			if(d.length < 1) { return; }
			document.getElementById(d).style.display = "none";
			}
			function ShowContent(d) {
			if(d.length < 1) { return; }
			document.getElementById(d).style.display = "block";
			}
			function ReverseContentDisplay(d) {
			if(d.length < 1) { return; }
			if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
			else { document.getElementById(d).style.display = "none"; }
			}*/


var w = window;
var d = w.document;


////////////////////////////////
//  GENERIC ELEMENT GETTER    //
////////////////////////////////

function getE( id ) {
  if ( d.getElementById )
    return d.getElementById( id );
  else
    return d.id;
}


/////////////////////
//  ARRAY FOR CONTENT POPS

var c = new Array();

c["Enrollment"] = "<p class='formElementRH'>Are you military personnel?</p><p class='formElementR'><input class='radio' type='radio' name='isMilitary' value='Yes' onfocus='popContent2(true );' />Yes</p><p class='formElementR'><input class='radio' type='radio' name='isMilitary' value='No' onfocus='popContent2(false);' checked=checked />No</p><div id='pop2'></div>";

c["Employees"] = "<p class='formElement'>* Organization Name: <input type='text' name='organization' /></p><p class='formElement'>* Location: <input type='text' name='organization' /></p><p class='formElement'>* What is your title or position: <input type='text' name='organization' /></p>";

c["Parent"] = "<p class='formElement'>* What school does your child attend? <input type='text' name='school' /></p><p class='formElement'>* Location <input type='text' name='location' /></p>";

c["School"] = "<p class='formElement'>School Name: <input type='text' name='Teacher_School' /></p><p class='formElement'>Location: <input type='text' name='location' /></p><p class='formElement'>What is your title or posiiton: <input type='text' name='title' /></p>";

c["Military"] = "<p class='formElement'>What is your current duty station? <input type='text' name='station' /></p><p class='formElement'>Rank/Rating: <input type='text' name='rank' /></p>";

c["Other"] = "";

//////////////////////////////
//  POP CONTENT FOR FORM    //
//////////////////////////////

function popContent( name ) {

  e = getE( "pop" );

  e.innerHTML = c[name];

}

////////////////////////////////
//  POP CONTENT FOR MILITARY  //
//  OR NOT                    //
////////////////////////////////

function popContent2( show ) {

  e = getE( "pop2" );

  if ( show ) {
    e.innerHTML = "<p class='formElement'>Current Status:<select name='status'><option value='Active_Duty'>Active-Duty</option><option value='Retired'>Retired</option><option value='Veteran/Former'>Veteran/Former Military</option><option value='Military_Spouse'>Military Spouse</option><option value='Dependent'>Dependent</option></select></p><p class='formElement'>Service Branch:<select name='branch'><option value='Army'>Army</option><option value='Air_force'>Air Force</option><option value='Navy'>Navy</option><option value='Marine'>Marine Corps</option><option value='Coast_Guard'>Coast Guard</option><option value='DoD'>DoD/Government</option></select></p><p class='formElement'>Rank / Rating: <input type='text' name='rank' /></p><p class='formElement'>What is you current duty station? <input type='text' name='station' /></p>";
  }
  else {
    e.innerHTML = "";
  }
}




