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_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_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_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];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// Comma separated list of images to rotate 
var imgs = new Array('../images/imgnav_bg_1.jpg','../images/imgnav_bg_2.jpg','../images/imgnav_bg_3.jpg','../images/imgnav_bg_4.jpg','../images/imgnav_bg_5.jpg','../images/imgnav_bg_6.jpg');
var imgs2 = new Array('../images/home_highlight_1_1.gif','../images/home_highlight_1_2.gif','../images/home_highlight_1_3.gif','../images/home_highlight_1_4.gif','../images/home_highlight_1_5.gif','../images/home_highlight_1_6.gif','../images/home_highlight_1_7.gif','../images/home_highlight_1_8.gif');
var imgs3 = new Array('../images/home_highlight_commercial.jpg','../images/home_highlight_brochure.gif');

var links2 = new Array('http://www.pearsonlimelight.com','http://www.preventdropout.com','http://www.pearsondiagnostic.com','http://www.pearsondiagnostic.com','http://school.writetolearn.net','http://www.pearsona4l.com/techsteps.php','http://www.pearsona4l.com/myvoicesurvey.php','http://www.pearsonchildrensprogress.com');
var links3 = new Array('/downloads/Web/A4LwebCommercial.html','/downloads/A4L_brochure.pdf');
var title3 = new Array('See what we believe','Product Brochure');

// delay in milliseconds between image swaps 1000 = 1 second 
var delay = 10000;
var delay2 = 5000;
var delay3 = 15000;

var counter = 0;
var counter2 = 0;
var counter3 = 0;

function preloadImgs(){
  for(var i=0;i<imgs.length;i++){
    MM_preloadImages(imgs[i]);
  }

  for(var i2=0;i2<imgs2.length;i2++){
    MM_preloadImages(imgs2[i2]);
  }

  for(var i3=0;i3<imgs3.length;i3++){
    MM_preloadImages(imgs3[i3]);
  }
}

function randomImages(){
  if(counter == (imgs.length)){
    counter = 0;
  }
  if (document.getElementById("image-nav-container") != null) { 
	  document.getElementById("image-nav-container").style.backgroundImage = "url(" + imgs[counter++] + ")";
  }
  setTimeout('randomImages()', delay);
}

function randomImages2(){
  if(counter2 == (imgs2.length)){
    counter2 = 0;
  }

    n_cnt = counter2;

  if (document.getElementById("highlight1") != null) 
	  document.getElementById("highlight1").src = imgs2[n_cnt];

  if (document.getElementById("hlink") != null) { 
	  document.getElementById("hlink").href = links2[n_cnt];
    if (links2[n_cnt] == 'http://www.pearsonlimelight.com' || links2[n_cnt] == 'http://www.preventdropout.com' || links2[n_cnt] == 'http://school.writetolearn.net' || links2[n_cnt] == 'http://www.pearsondiagnostic.com' || links2[n_cnt] == 'http://www.pearsonchildrensprogress.com')
	  document.getElementById("hlink").target="_blank";
    else
          document.getElementById("hlink").target="";  
}

  counter2++;

  setTimeout('randomImages2()', delay2);
}

function randomImages3(){
  if(counter3 == (imgs3.length)){
    counter3 = 0;
  }

    n_cnt3 = counter3;

  if (document.getElementById("highlight3") != null) 
	  document.getElementById("highlight3").src = imgs3[n_cnt3];

  if (document.getElementById("hlink3") != null) { 
	  document.getElementById("hlink3").href = links3[n_cnt3];
	  document.getElementById("hlink3").title = title3[n_cnt3];
}

  counter3++;

  setTimeout('randomImages3()', delay3);
}

function web2lead(mode){
	// FORM ELEMENTS
	var txtFirstName = document.getElementById('txtFirstName');
	var txtLastName = document.getElementById('txtLastName');
	var txtTitle = document.getElementById('txtTitle');
	var txtEmail = document.getElementById('txtEmail');
	var txtPhone = document.getElementById('txtPhone');
	var txtZip = document.getElementById('txtZip');
	var txtSchool = document.getElementById('txtSchool');
	var txtDistrict = document.getElementById('txtDistrict');
	var ddlState = document.getElementById('ddlState');
	var error = false;
	var errormessage = document.getElementById('errormessage');

	// VALIDATE
	if(mode == 'validate'){
		
		if(txtFirstName.value == null || txtFirstName.value == ''){
			error = true;
		}
		if(txtLastName.value == null || txtLastName.value == ''){
			error = true;
		}
		if(txtTitle.value == null || txtTitle.value == ''){
			error = true;
		}
		if(txtEmail.value == null || txtEmail.value == ''){
			error = true;
		}
		if(txtPhone.value == null || txtPhone.value == ''){
			error = true;
		}
		if(txtZip.value == null || txtZip.value == ''){
			error = true;
		}
		if(txtSchool.value == null || txtSchool.value == ''){
			error = true;
		}
		if(txtDistrict.value == null || txtDistrict.value == ''){
			error = true;
		}
		if(ddlState.selectedIndex == 0){
			error = true;
		}
		if(error){
			errormessage.innerHTML = '<strong>ERROR</strong>: Fill in required fields and resubmit.';	
			window.scroll(0,0);
		}
		else {
			document.leadform.submit();
		}
	}
	// RESET
	if(mode == 'reset'){
		document.leadform.reset();
	}


}

function web2lead_2(mode){
	// FORM ELEMENTS
	var txtFirstName = document.getElementById('txtFirstName');
	var txtLastName = document.getElementById('txtLastName');
	var txtTitle = document.getElementById('ddlTitle');
	var txtPhone = document.getElementById('txtPhone');
	var txtEmail = document.getElementById('txtEmail');
	var txtSchool = document.getElementById('txtSchool');
	var txtEnrollment = document.getElementById('txtEnrollment');
	var txtCity = document.getElementById('txtCity');	
	var ddlState = document.getElementById('ddlState');
	var error = false;
	var errormessage = document.getElementById('errormessage');

	// VALIDATE
	if(mode == 'validate'){
		
		if(txtFirstName.value == null || txtFirstName.value == ''){
			error = true;
		}
		if(txtLastName.value == null || txtLastName.value == ''){
			error = true;
		}
		if(txtTitle.value == null || txtTitle.value == ''){
			error = true;
		}
		if(txtEmail.value == null || txtEmail.value == ''){
			error = true;
		}
		if(txtPhone.value == null || txtPhone.value == ''){
			error = true;
		}
		if(txtCity.value == null || txtCity.value == ''){
			error = true;
		}
		if(txtSchool.value == null || txtSchool.value == ''){
			error = true;
		}
		if(txtEnrollment.value == null || txtEnrollment.value == ''){
			error = true;
		}
		if(ddlState.selectedIndex == 0){
			error = true;
		}
		if(error){
			errormessage.innerHTML = '<strong>ERROR</strong>: Fill in required fields and resubmit.<br><br>';	
			window.scroll(0,0);
		}
		else {
			document.leadform.submit();
		}
	}
	// RESET
	if(mode == 'reset'){
		document.leadform.reset();
	}
}


function MaxLength(text,long) {	
	var maxlengths = new Number(long); // Change number to your max length.
	if(document.getElementById('txtComments').value.length > maxlengths){
			text.value = text.value.substring(0,maxlengths);
			alert(" Limit is " + long + " characters");
	}
}

function PageSetup()
{
//
// Bold nagivation page & Update Title
//
var tmp=location.pathname
var tmp2 = tmp.substring(tmp.indexOf("/")+1,tmp.length)
tmp2.toLowerCase()

//alert(" URL is " + tmp);
//alert(" Webpage is " + tmp2);

if (tmp2 == "role.php")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("2") != null) 
  	 document.getElementById("2").className = 'current_page_item';
  document.title = "Assessment For Learning [A4L] - Who we help";
 }
 else if (tmp2 == "interest.php")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("3") != null) 
  	 document.getElementById("3").className = 'current_page_item';
  document.title = "Assessment For Learning [A4L] - How we help";
 }
 else if (tmp2 == "different.php")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("4") != null) 
  	 document.getElementById("4").className = 'current_page_item';
  document.title = "Assessment For Learning [A4L] - Why we're different";
 }
 else if (tmp2 == "about.php")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("5") != null) 
  	 document.getElementById("5").className = 'current_page_item';
  document.title = "Assessment For Learning [A4L] - About";
 }
 else if (tmp2 == "newsevents.php")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("6") != null) 
  	 document.getElementById("6").className = 'current_page_item';
  document.title = "Assessment For Learning [A4L] - News & Events";
 }
 else if (tmp2 == "contact.php")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("7") != null) 
  	 document.getElementById("7").className = 'current_page_item';
  document.title = "Assessment For Learning [A4L] - Contact";
 }
 else if (tmp2 == "rep.php")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("8") != null) 
  	 document.getElementById("8").className = 'current_page_item';
  document.title = "Assessment For Learning [A4L] - Find a rep";
 }
 else if (tmp2 == "techsteps.php")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("10") != null) 
  	document.getElementById("10").className = 'current_page_item2';
  document.title = "Assessment For Learning [A4L] - TechSteps";
 }
 else if (tmp2 == "myvoicesurvey.php")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("11") != null) 
  	document.getElementById("11").className = 'current_page_item2';
  document.title = "Assessment For Learning [A4L] - MyVoiceSurvey";
 }
 else if (tmp2 == "professionaldevelopment.php")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("12") != null) 
  	document.getElementById("12").className = 'current_page_item2';
  document.title = "Assessment For Learning [A4L] - Professional Development";
 }
 else if (tmp2 == "terms.php")
 {
  document.title = "Assessment For Learning [A4L] - Website Terms of Use";
 }
 else if (tmp2 == "tandc.php")
 {
  document.title = "Assessment For Learning [A4L] - Product Purchasing Terms & Conditions";
 }
 else if (tmp2 == "studentengagement.php")
 {
  document.title = "Assessment For Learning [A4L] - Student engagement";
 }
 else if (tmp2 == "privacypolicy.php")
 {
  document.title = "Assessment For Learning [A4L] - Privacy Policy";
 }
 else if (tmp2 == "dropoutprevention.php")
 {
  document.title = "Assessment For Learning [A4L] - Dropout prevention";
 }
 else if (tmp2 == "assessmentforlearning.php")
 {
  document.title = "Assessment For Learning [A4L] - Assessment for learning";
 }
 else if (tmp2 == "21stcenturytechnologyskills.php")
 {
  document.title = "Assessment For Learning [A4L] - 21st Century technology skills";
 }
 else if (tmp2 == "webinar.php")
 {
  document.title = "Assessment For Learning [A4L] - Webinar";
 }
 else if (tmp2 == "")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("1") != null) 
  	 document.getElementById("1").className = 'current_page_item';
  document.title = "Assessment For Learning [A4L] - Home";
 }
}


function FindRep()
{
//
// Display Rep Information
// 

var selectbox=document.getElementById("state"); 
var s_value=selectbox.options[selectbox.selectedIndex].value;

//alert(" Value is  " + s_value);

if (document.getElementById("rep1") != null) 
	document.getElementById("rep1").style.display='none';
if (document.getElementById("rep2") != null) 
	document.getElementById("rep2").style.display='none';
if (document.getElementById("rep3") != null) 
	document.getElementById("rep3").style.display='none';
if (document.getElementById("rep4") != null) 
	document.getElementById("rep4").style.display='none';
if (document.getElementById("rep5") != null) 
	document.getElementById("rep5").style.display='none';
if (document.getElementById("rep6") != null) 
	document.getElementById("rep6").style.display='none';
if (document.getElementById("rep7") != null) 
	document.getElementById("rep7").style.display='none';
if (document.getElementById("rep8") != null) 
	document.getElementById("rep8").style.display='none';
if (document.getElementById("rep9") != null) 
	document.getElementById("rep9").style.display='none';
if (document.getElementById("rep10") != null) 
	document.getElementById("rep10").style.display='none';
if (document.getElementById("rep11") != null) 
	document.getElementById("rep11").style.display='none';
if (document.getElementById("rep12") != null) 
	document.getElementById("rep12").style.display='none';
if (document.getElementById("rep13") != null) 
	document.getElementById("rep13").style.display='none';


if (s_value == "AL")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep4") != null) 
  	 document.getElementById("rep4").style.display='inline';
 }
if (s_value == "AK")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep10") != null) 
  	 document.getElementById("rep10").style.display='inline';
 }
if (s_value == "AR")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep3") != null) 
  	 document.getElementById("rep3").style.display='inline';
 }
if (s_value == "AZ")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep11") != null) 
  	 document.getElementById("rep11").style.display='inline';
 }
if (s_value == "CA")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep12") != null) 
  	 document.getElementById("rep12").style.display='inline';
 }
if (s_value == "CO")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep11") != null) 
  	 document.getElementById("rep11").style.display='inline';
 }
if (s_value == "CT")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "DC")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "DE")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep3") != null) 
  	 document.getElementById("rep3").style.display='inline';
 }
if (s_value == "FL")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep4") != null) 
  	 document.getElementById("rep4").style.display='inline';
 }
if (s_value == "GA")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep4") != null) 
  	 document.getElementById("rep4").style.display='inline';
 }
if (s_value == "HI")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep10") != null) 
  	 document.getElementById("rep10").style.display='inline';
 }
if (s_value == "IA")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }
if (s_value == "ID")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }
if (s_value == "IL")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep5") != null) 
  	 document.getElementById("rep5").style.display='inline';
 }
if (s_value == "IN")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep5") != null) 
  	 document.getElementById("rep5").style.display='inline';
 }
if (s_value == "KS")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }
if (s_value == "KY")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep3") != null) 
  	 document.getElementById("rep3").style.display='inline';
 }
if (s_value == "LA")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep4") != null) 
  	 document.getElementById("rep4").style.display='inline';
 }
if (s_value == "MA")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "MD")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }
if (s_value == "ME")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "MI")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep5") != null) 
  	 document.getElementById("rep5").style.display='inline';
 }
if (s_value == "MN")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep5") != null) 
  	 document.getElementById("rep5").style.display='inline';
 }
if (s_value == "MO")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep5") != null) 
  	 document.getElementById("rep5").style.display='inline';
 }
if (s_value == "MS")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep4") != null) 
  	 document.getElementById("rep4").style.display='inline';
 }
if (s_value == "MT")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }
if (s_value == "NC")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "ND")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }
if (s_value == "NE")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }
if (s_value == "NH")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "NJ")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "NM")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }
if (s_value == "NV")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep12") != null) 
  	 document.getElementById("rep12").style.display='inline';
 }
if (s_value == "NY")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep1") != null) 
  	 document.getElementById("rep1").style.display='inline';
 }
if (s_value == "OH")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep5") != null) 
  	 document.getElementById("rep5").style.display='inline';
 }
if (s_value == "OK")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep11") != null) 
  	 document.getElementById("rep11").style.display='inline';
 }
if (s_value == "OR")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep12") != null) 
  	 document.getElementById("rep12").style.display='inline';
 }
if (s_value == "PA")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep5") != null) 
  	 document.getElementById("rep5").style.display='inline';
 }
if (s_value == "RI")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "SC")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "SD")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }
if (s_value == "TN")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep3") != null) 
  	 document.getElementById("rep3").style.display='inline';
 }
if (s_value == "TX")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';

  if (document.getElementById("rep11") != null) 
	 document.getElementById("rep11").style.display='inline';
 }
if (s_value == "UT")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep11") != null) 
  	 document.getElementById("rep11").style.display='inline';
 }
if (s_value == "VA")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "VT")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }
if (s_value == "WA")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep12") != null) 
  	 document.getElementById("rep12").style.display='inline';
 }
if (s_value == "WI")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep5") != null) 
  	 document.getElementById("rep5").style.display='inline';
 }
if (s_value == "WV")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep3") != null) 
  	 document.getElementById("rep3").style.display='inline';
 }
if (s_value == "WY")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }
//
//Map Mapping
//
if (document.getElementById("map1") != null)
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }

}


function FindRep2(s_area)
{
//
// Find Rep Information
// 

//alert(" Value is  " + s_area);

if (document.getElementById("rep1") != null) 
	document.getElementById("rep1").style.display='none';
if (document.getElementById("rep2") != null) 
	document.getElementById("rep2").style.display='none';
if (document.getElementById("rep3") != null) 
	document.getElementById("rep3").style.display='none';
if (document.getElementById("rep4") != null) 
	document.getElementById("rep4").style.display='none';
if (document.getElementById("rep5") != null) 
	document.getElementById("rep5").style.display='none';
if (document.getElementById("rep6") != null) 
	document.getElementById("rep6").style.display='none';
if (document.getElementById("rep7") != null) 
	document.getElementById("rep7").style.display='none';
if (document.getElementById("rep8") != null) 
	document.getElementById("rep8").style.display='none';
if (document.getElementById("rep9") != null) 
	document.getElementById("rep9").style.display='none';
if (document.getElementById("rep10") != null) 
	document.getElementById("rep10").style.display='none';
if (document.getElementById("rep11") != null) 
	document.getElementById("rep11").style.display='none';
if (document.getElementById("rep12") != null) 
	document.getElementById("rep12").style.display='none';
if (document.getElementById("rep13") != null) 
	document.getElementById("rep13").style.display='none';


// Make sure the element exists before calling it's properties
if (document.getElementById("state") != null) 
	document.getElementById("state").selectedIndex = 0;


//var winWidth = document.body.clientWidth; 
//var winHeight = document.body.clientHeight; 
//window.scrollTo(winWidth,winHeight);
window.scrollTo(0,550);

if (s_area == "1")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';

  if (document.getElementById("rep11") != null) 
	 document.getElementById("rep11").style.display='inline';
 }

if (s_area == "2")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep10") != null) 
	 document.getElementById("rep10").style.display='inline';
 }

if (s_area == "3")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep12") != null) 
  	 document.getElementById("rep12").style.display='inline';
 }

if (s_area == "4")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep11") != null) 
  	 document.getElementById("rep11").style.display='inline';
 }

if (s_area == "5")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep9") != null) 
  	 document.getElementById("rep9").style.display='inline';
 }

if (s_area == "6")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep4") != null) 
  	 document.getElementById("rep4").style.display='inline';
 }

if (s_area == "7")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep1") != null) 
  	 document.getElementById("rep1").style.display='inline';
 }

if (s_area == "8")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep5") != null) 
  	 document.getElementById("rep5").style.display='inline';
 }

if (s_area == "9")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep3") != null) 
  	 document.getElementById("rep3").style.display='inline';
 }

if (s_area == "10")
 {
  // Make sure the element exists before calling it's properties
  if (document.getElementById("rep2") != null) 
  	 document.getElementById("rep2").style.display='inline';
 }

}
