﻿imgout=new Image(9,9);
imgin=new Image(9,9);
 /////////////////BEGIN USER EDITABLE///////////////////////////////
            imgout.src="images/u.gif";
            imgin.src="images/d.gif";
///////////////END USER EDITABLE///////////////////////////////////
 
//this switches expand collapse icons
function filter(imagename,objectsrc){
            if (document.images){
                        document.images[imagename].src=eval(objectsrc+".src");
            }
}
 
//show OR hide funtion depends on if element is shown or hidden
function show(id) {

            if (document.getElementById) { // DOM3 = IE5, NS6
                        if (document.getElementById(id).style.display == "none"){
                                    document.getElementById(id).style.display = 'block';
                                    filter(("img"+id),'imgin');
                        } else {
                                    filter(("img"+id),'imgout');
                                    document.getElementById(id).style.display = 'none';
                        }
            } else {
                        if (document.layers) {
                                    if (document.id.display == "none"){
                                                document.id.display = 'block';
                                                filter(("img"+id),'imgin');
                                    } else {
                                                filter(("img"+id),'imgout');
                                                document.id.display = 'none';
                                    }
                        } else {
                                    if (document.all.id.style.visibility == "none"){
                                                document.all.id.style.display = 'block';
                                    } else {
                                                filter(("img"+id),'imgout');
                                                document.all.id.style.display = 'none';
                                    }
                        }
            }
}


isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isOn=false;

function ddInit(e){

  varOne=isIE ? "BODY" : "HTML";
  varTwo=isIE ? document.all.myLayer : document.getElementById("myLayer");
  varThree=isIE ? event.srcElement : e.target;
  varFour=isIE ? document.all.myLayerTitle : document.getElementById("myLayerTitle");
  varFive=isIE ? document.all.myLayerBlurb : document.getElementById("myLayerBlurb");
  varSix=isIE ? event.srcElement : e.target;
  while (varThree.id!="topBar"&&varThree.tagName!=varOne){
    varThree=isIE ? varThree.parentElement : varThree.parentNode;
  }
  if (varThree.id=="topBar" && varSix.type != 'text' && varSix.type != 'textarea' && varSix.type != 'submit' && varSix.id != 'closer'){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(varTwo.style.left);
    nowY=parseInt(varTwo.style.top);
    ddEnabled=true;
    document.onmousemove=dd;
  }
}

function dd(e){
  if (!ddEnabled) return;
  varTwo.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx;
  varTwo.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;
}

function ddN4(varFour){
  if (!isN4) return;
  N4=eval(varFour);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
    if (isOn){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}

function hideMe(){
  if (isIE||isNN) varTwo.style.visibility="hidden";
  else if (isN4) document.myLayer.visibility="hide";
}

function showMe(myTitle,myBlurb){
var tempX = 0;
var tempY = 0;
  varTwo=isIE ? document.all.myLayer : document.getElementById("myLayer");
  varFour=isIE ? document.all.myLayerTitle : document.getElementById("myLayerTitle");
  varFive=isIE ? document.all.myLayerBlurb : document.getElementById("myLayerBlurb");

tempX = (f_scrollLeft() + (f_clientWidth()/2) - 145);
tempY = (f_scrollTop() + (f_clientHeight()/2) - 150);

if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}  
 var e = document.createElement("div");
 e.innerHTML = myBlurb;
 e.type= "text/html";
 
  if (isIE||isNN) {
    varTwo.style.position="absolute";
    varTwo.style.width="290px";
    varTwo.style.left=tempX;
    varTwo.style.top=tempY;
    varTwo.style.visibility="visible";
    varFour.innerHTML=myTitle;
    varFive.innerHTML="";
    varFive.appendChild(e);
    }
  else if (isN4){
     document.myLayer.position="absolute";
     document.myLayer.width="290px";
     document.myLayer.left=tempX;
     document.myLayer.top=tempY;
     document.myLayer.visibility="show";
    }
}

document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");

function f(what) {
what.style.background = '#FFFF99';
}

function b(what) {
what.style.background = '#FFFFFF';
}

function f_clientWidth() {
	return f_filterResults (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}
function f_clientHeight() {
	return f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}
function f_scrollLeft() {
	return f_filterResults (
		window.pageXOffset ? window.pageXOffset : 0,
		document.documentElement ? document.documentElement.scrollLeft : 0,
		document.body ? document.body.scrollLeft : 0
	);
}
function f_scrollTop() {
	return f_filterResults (
		window.pageYOffset ? window.pageYOffset : 0,
		document.documentElement ? document.documentElement.scrollTop : 0,
		document.body ? document.body.scrollTop : 0
	);
}
function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}

                    
function showHelp(){
    return false;
}

function showDiv() 
{
  if (isIE||isNN) document.getElementById('myHiddenDiv').style.visibility="visible";
  else if (isN4) document.myHiddenDiv.visibility="show";
setTimeout('document.images["myAnimatedImage"].src="images/updating.gif"', 200); 
} 

function showDiv1() 
{
  if (isIE||isNN) document.getElementById('myHiddenDiv').style.visibility="visible";
  else if (isN4) document.myHiddenDiv.visibility="show";
setTimeout('document.images["myAnimatedImage"].src="images/updating1.gif"', 200); 
} 
function showDiv2() 
{
emailTest = /^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})$/
    if (document.emailForm.emailBody.value.length < 1) {
        alert("You forgot to enter a message.");
        document.emailForm.emailBody.focus();
        return false;
    }
    else if (!emailTest.test(document.emailForm.ccEmail.value) && document.emailForm.ccEmail.value!='' ) {
        alert("The CC Email Address is not a valid email format.");
        document.emailForm.ccEmail.focus();
        return false;
    }
    else {
          if (isIE||isNN){
             document.getElementById('myHiddenDiv2').style.visibility="visible";
             document.getElementById('mySubmit').style.visibility="hidden";
             }
          else if (isN4) {
             document.myHiddenDiv2.visibility="show";
             document.mySubmit.visibility="hidden";
             }
          setTimeout('document.images["myAnimatedImage"].src="images/updating3.gif"', 200);
          return true;
    } 
} 
function findFirstText(theForm)
{
    var num_of_elements = theForm.length;
    for (var i=0; i<num_of_elements; i++) {
        var theElement = theForm.elements[i];
        var element_type = theElement.type;
        if (element_type == "text") {
            theElement.focus();
            i=num_of_elements;
        }
    }
}

function CltProctorClk(proctorId,iType)
{
        document.getElementById('proctorId').value=proctorId;
        document.getElementById('iType').value=iType;
        document.forms[0].submit();
}

function CltRptBtnClk(studentNumber,report,starter,ender)
{
     if(starter.value == '' || starter.value.length < 10){
        starter.focus();
        alert('Please use a valid Begin Date!');
        return false;
    }
    if(ender.value == '' || ender.value.length < 10){
        ender.focus();
        alert('Please use a valid End Date!');
        return false;
    }

    var sDay = starter.value.substring(3,5);
    var sMonth = starter.value.substring(0,2)-1;
    var sYear = starter.value.substring(6,10);
    var eDay = ender.value.substring(3,5);
    var eMonth = ender.value.substring(0,2)-1;
    var eYear = ender.value.substring(6,10);
    if(isDate(sDay,sMonth,sYear)){
        var Strstarter=new Date(sYear,sMonth,sDay);
    }
    else
    {
        starter.focus();
        alert('Please use a valid Begin Date!');
        return false;
    }
    if(isDate(eDay,eMonth,eYear)){
        var Strender=new Date(eYear,eMonth,eDay);
    }
    else
    {
        ender.focus();
        alert('Please use a valid End Date!');
        return false;
    }
    
    if(Strender < Strstarter){
        ender.focus();
        alert('The End Date must be after the Begin Date!');
        return false;
    }
    var today = new Date();
     if(Strender > today){
        ender.focus();
        alert('The End Date cannot be a future date!');
        return false;
    }
     if(Strstarter > today){
        starter.focus();
        alert('The Begin Date cannot be a future date!');
        return false;
    }
   
        document.getElementById('pdfUserID').value=studentNumber;
        document.getElementById('dteStartDate1').value=starter.value;
        document.getElementById('dteEndDate1').value=ender.value;
        document.getElementById('pdfFileName').value=report;
        document.forms[0].action='deliverPDF.aspx';
        document.forms[0].target='_blank';
        document.forms[0].submit();
        document.forms[0].action='';
        document.forms[0].target='_self'
}

	function y2k(number) { return (number < 1000) ? number + 1900 : number; }

	function isDate(day,month,year) {
		var today = new Date();
		year = ((!year) ? y2k(today.getYear()):year);
		month = ((!month) ? today.getMonth():month);
		if (!day) return false
		var test = new Date(year,month,day);
		if ( (y2k(test.getYear()) == year) &&
			(month == test.getMonth()) &&
			(day == test.getDate()) )
			return true;
		else
			return false
	}

    function validAccountId(acctID,acctName,acctEmail) {
        var re8digit=/^\d{8}$/;
        var reName=/^[a-zA-Z0-9]+$/;
        var reEmail=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
        if(acctID.search(re8digit)==-1) {
            alert('Please enter an eight digit number!');
            return false;
            }
        else if(acctName.search(reName)==-1) {
            alert('Please enter a user name!');
            return false;
            }
        else if(acctEmail.search(reEmail)==-1) {
            alert('Please enter a valid email address!');
            return false;
            }
        else {
            return true;
            }
    }
    
    	function MoveOption(objSourceElement, objTargetElement, objFinalElement)
	{
		if(is8Numeric(objSourceElement.value)){
				if(objTargetElement.innerHTML.length > 0){
					objTargetElement.innerHTML += ',';
					objFinalElement.value += ',';
				}
				objTargetElement.innerHTML += objSourceElement.value;
				objFinalElement.innerHTML += objSourceElement.value;
				objSourceElement.value = '';
		}
		else {
			alert('Account number must be eight(8) numerals!');
			}
		objSourceElement.focus();
	}

	function RemoveOption(objSourceElement, objTargetElement, objFinalElement)
	{
				var str = objTargetElement.innerHTML;
				var markIt = str.lastIndexOf(",");
				if(markIt == -1){markIt = 0}
				objTargetElement.innerHTML = str.substring(0,markIt);
				objFinalElement.innerHTML = str.substring(0,markIt);
				objSourceElement.value = '';
				objSourceElement.focus();
	}

	function is8Numeric(x) {
	 	var RegExp = /^\d{8}$/;
	 	var result = x.match(RegExp);
	 	return result;
	 	//var RegExp = /^(-)?(\d*)(\.?)(\d*)$/;
	 	}
	 	
	function btnEnrollClick(locnum,cltnum,starter,ender)
	{
	if(starter.value == '' || starter.value.length < 10){
        starter.focus();
        alert('Please use a valid Begin Date!');
        return false;
    }
    if(ender.value == '' || ender.value.length < 10){
        ender.focus();
        alert('Please use a valid End Date!');
        return false;
    }

    var sDay = starter.value.substring(3,5);
    var sMonth = starter.value.substring(0,2)-1;
    var sYear = starter.value.substring(6,10);
    var eDay = ender.value.substring(3,5);
    var eMonth = ender.value.substring(0,2)-1;
    var eYear = ender.value.substring(6,10);
    if(isDate(sDay,sMonth,sYear)){
        var Strstarter=new Date(sYear,sMonth,sDay);
    }
    else
    {
        starter.focus();
        alert('Please use a valid Begin Date!');
        return false;
    }
    if(isDate(eDay,eMonth,eYear)){
        var Strender=new Date(eYear,eMonth,eDay);
    }
    else
    {
        ender.focus();
        alert('Please use a valid End Date!');
        return false;
    }
    
    if(Strender < Strstarter){
        ender.focus();
        alert('The End Date must be after the Begin Date!');
        return false;
    }
    var today = new Date();
     if(Strender > today){
        ender.focus();
        alert('The End Date cannot be a future date!');
        return false;
    }
     if(Strstarter > today){
        starter.focus();
        alert('The Begin Date cannot be a future date!');
        return false;
    }
   
    document.getElementById('dteStartDate1').value=starter.value;
    document.getElementById('dteEndDate1').value=ender.value;
    document.getElementById('repLocNum').value=locnum;
    document.getElementById('repCltNum').value=cltnum;
    document.getElementById('pdfFileName').value='rptEnroll';
    document.forms[0].action='frmViewReport.aspx';
    document.forms[0].target='_blank';
    document.forms[0].submit();
    document.forms[0].action='';
    document.forms[0].target='_self';
	} 	

function btnGradClick(locnum,cltnum,starter,ender)
	{
	if(starter.value == '' || starter.value.length < 10){
        starter.focus();
        alert('Please use a valid Begin Date!');
        return false;
    }
    if(ender.value == '' || ender.value.length < 10){
        ender.focus();
        alert('Please use a valid End Date!');
        return false;
    }

    var sDay = starter.value.substring(3,5);
    var sMonth = starter.value.substring(0,2)-1;
    var sYear = starter.value.substring(6,10);
    var eDay = ender.value.substring(3,5);
    var eMonth = ender.value.substring(0,2)-1;
    var eYear = ender.value.substring(6,10);
    if(isDate(sDay,sMonth,sYear)){
        var Strstarter=new Date(sYear,sMonth,sDay);
    }
    else
    {
        starter.focus();
        alert('Please use a valid Begin Date!');
        return false;
    }
    if(isDate(eDay,eMonth,eYear)){
        var Strender=new Date(eYear,eMonth,eDay);
    }
    else
    {
        ender.focus();
        alert('Please use a valid End Date!');
        return false;
    }
    
    if(Strender < Strstarter){
        ender.focus();
        alert('The End Date must be after the Begin Date!');
        return false;
    }
    
    var today = new Date();
    if(Strender > today){
        ender.focus();
        alert('The End Date cannot be a future date!');
        return false;
    }
    
    if(Strstarter > today){
        starter.focus();
        alert('The Begin Date cannot be a future date!');
        return false;
    }
   
    document.getElementById('dteStartDate1').value=starter.value;
    document.getElementById('dteEndDate1').value=ender.value;
    document.getElementById('repLocNum').value=locnum;
    document.getElementById('repCltNum').value=cltnum;
    document.getElementById('pdfFileName').value='rptGrad';
    document.forms[0].action='frmViewReport.aspx';
    document.forms[0].target='_blank';
    document.forms[0].submit();
    document.forms[0].action='';
    document.forms[0].target='_self';
	}
	
	function btnNonStartClick(locnum,cltnum,starter,ender)
	{
	if(starter.value == '' || starter.value.length < 10){
        starter.focus();
        alert('Please use a valid Begin Date!');
        return false;
    }
    if(ender.value == '' || ender.value.length < 10){
        ender.focus();
        alert('Please use a valid End Date!');
        return false;
    }

    var sDay = starter.value.substring(3,5);
    var sMonth = starter.value.substring(0,2)-1;
    var sYear = starter.value.substring(6,10);
    var eDay = ender.value.substring(3,5);
    var eMonth = ender.value.substring(0,2)-1;
    var eYear = ender.value.substring(6,10);
    if(isDate(sDay,sMonth,sYear)){
        var Strstarter=new Date(sYear,sMonth,sDay);
    }
    else
    {
        starter.focus();
        alert('Please use a valid Begin Date!');
        return false;
    }
    if(isDate(eDay,eMonth,eYear)){
        var Strender=new Date(eYear,eMonth,eDay);
    }
    else
    {
        ender.focus();
        alert('Please use a valid End Date!');
        return false;
    }
    
    if(Strender < Strstarter){
        ender.focus();
        alert('The End Date must be after the Begin Date!');
        return false;
    }
    var today = new Date();
     if(Strender > today){
        ender.focus();
        alert('The End Date cannot be a future date!');
        return false;
    }
     if(Strstarter > today){
        starter.focus();
        alert('The Begin Date cannot be a future date!');
        return false;
    }
   
    document.getElementById('dteStartDate1').value=starter.value;
    document.getElementById('dteEndDate1').value=ender.value;
    document.getElementById('repLocNum').value=locnum;
    document.getElementById('repCltNum').value=cltnum;
    document.getElementById('pdfFileName').value='rptNonStart';
    document.forms[0].action='frmViewReport.aspx';
    document.forms[0].target='_blank';
    document.forms[0].submit();
    document.forms[0].action='';
    document.forms[0].target='_self';
	}
	
	function btnCancelClick(locnum,cltnum,starter,ender)
	{
	if(starter.value == '' || starter.value.length < 10){
        starter.focus();
        alert('Please use a valid Begin Date!');
        return false;
    }
    if(ender.value == '' || ender.value.length < 10){
        ender.focus();
        alert('Please use a valid End Date!');
        return false;
    }

    var sDay = starter.value.substring(3,5);
    var sMonth = starter.value.substring(0,2)-1;
    var sYear = starter.value.substring(6,10);
    var eDay = ender.value.substring(3,5);
    var eMonth = ender.value.substring(0,2)-1;
    var eYear = ender.value.substring(6,10);
    if(isDate(sDay,sMonth,sYear)){
        var Strstarter=new Date(sYear,sMonth,sDay);
    }
    else
    {
        starter.focus();
        alert('Please use a valid Begin Date!');
        return false;
    }
    if(isDate(eDay,eMonth,eYear)){
        var Strender=new Date(eYear,eMonth,eDay);
    }
    else
    {
        ender.focus();
        alert('Please use a valid End Date!');
        return false;
    }
    
    if(Strender < Strstarter){
        ender.focus();
        alert('The End Date must be after the Begin Date!');
        return false;
    }
    var today = new Date();
     if(Strender > today){
        ender.focus();
        alert('The End Date cannot be a future date!');
        return false;
    }
     if(Strstarter > today){
        starter.focus();
        alert('The Begin Date cannot be a future date!');
        return false;
    }
   
    document.getElementById('dteStartDate1').value=starter.value;
    document.getElementById('dteEndDate1').value=ender.value;
    document.getElementById('repLocNum').value=locnum;
    document.getElementById('repCltNum').value=cltnum;
    document.getElementById('pdfFileName').value='rptCancel';
    document.forms[0].action='frmViewReport.aspx';
    document.forms[0].target='_blank';
    document.forms[0].submit();
    document.forms[0].action='';
    document.forms[0].target='_self';
	} 	
    
    function IsNotNumeric(sText) {
        var ValidChars = "0123456789";
        var IsNumber=false;
        var Char;

        for (i = 0; i < sText.length && IsNumber == false; i++) 
           { 
           Char = sText.charAt(i); 
           if (ValidChars.indexOf(Char) == -1) 
              {
              IsNumber = true;
              }
           }
        return IsNumber;
    }
    
    function btnInactiveClick(locnum,cltnum,starter)
    {
    if(starter.value == '' || starter.value <= 0){
        starter.focus();
        alert('# of Days must be greater than 0!');
        return false;
    }
    if(IsNotNumeric(starter.value)){
		starter.focus();
		alert('# of Days must be numeric!');
		return false;
	}
	document.getElementById('dteStartDate1').value=starter.value;
    document.getElementById('dteEndDate1').value='';
    document.getElementById('repLocNum').value=locnum;
    document.getElementById('repCltNum').value=cltnum;
    document.getElementById('pdfFileName').value='rptInactive';
    document.forms[0].action='frmViewReport.aspx';
    document.forms[0].target='_blank';
    document.forms[0].submit();
    document.forms[0].action='';
    document.forms[0].target='_self';
    } 
    
    function CltSearchBtnClk(search)
	{
	document.getElementById('SearchString').value=search.value;
	}
	
	function CltUrlBtnClk(link)
	{
	    window.open (link,"mywindow"); 
	}
	       
    /*help vars*/
    
   		var Section0Head ="Reports";
		var Section0HelpTitle ="Reports Available";
		var Section0HelpBody ="This section shows a list of available reports.&lt;ol&gt;&lt;li&gt;Click on &lt;img src=\'images/u.gif\'&gt; to expand the section and click &lt;img src=\'images/d.gif\'&gt; to collapse the section.&lt;/li&gt;&lt;li&gt;All reports are in Portable Document Format (PDF). &lt;/li&gt;&lt;li&gt;If the report requires a date range, click &lt;img src=\'images/SmallCalendar.gif\'&gt; to choose a date or type the date in the textbox in the MM/DD/YY format.&lt;/li&gt;&lt;li&gt;If a report has a drop down box next to it, a selection from that drop down id required.&lt;/li&gt;&lt;/ol&gt;&lt;center&gt;&lt;a href=\'http://www.adobe.com/products/acrobat/readstep2.html\' target=\'_blank\'&gt;&lt;img src=\'images/pdf.gif\' border=\'0\'&gt; Download Free Adobe Reader&lt;/a&gt;&lt;/center&gt;";
		var Section1Head ="Organization";
		var Section1HelpTitle ="Organization Help";
		var Section1HelpBody ="This section shows your organization.&lt;ol&gt;&lt;li&gt;Click on &lt;img src=\'images/u.gif\'&gt; to expand the section and click &lt;img src=\'images/d.gif\'&gt; to collapse the section.&lt;/li&gt;&lt;/ol&gt;";
		var Section2Head ="Location";
		var Section2HelpTitle ="Location Help";
		var Section2HelpBody ='This section shows a list of locations in the above organization.<ol><li>Click on <a><img src="images/u.gif" name="arr" border="0" alt="Expand" /></a> to expand the section and click <img src="images/d.gif"> to collapse the section.</li><li>Click on <img src="images/reload.gif"> to refresh the list of all available locations in the section</li><li>Click <img src="images/expand.gif"> next to the location to display the departments below associated with that location.</li></ol>';
		var Section3Head ="Department";
		var Section3HelpTitle ="Department Help";
		var Section3HelpBody ="This section shows a list of departments in the above location.&lt;ol&gt;&lt;li&gt;Click on &lt;img src=\'images/u.gif\'&gt; to expand the section and click &lt;img src=\'images/d.gif\'&gt; to collapse the section.&lt;/li&gt;&lt;li&gt;Click on &lt;img src=\'images/reload.gif\'&gt; to refresh the list of all available departments in the section&lt;/li&gt;&lt;li&gt;Click &lt;img src=\'images/expand.gif\'&gt; next to the department to display the students below associated with that department.&lt;/li&gt;&lt;/ol&gt;";
		var Section4Head ="Student List";
		var Section4HelpTitle ="Student List Help";
		var Section4HelpBody ="This section shows a list of students in the above department.&lt;ol&gt;&lt;li&gt;Click on &lt;img src=\'images/u.gif\'&gt; to expand the section and click &lt;img src=\'images/d.gif\'&gt; to collapse the section.&lt;/li&gt;&lt;li&gt;Clicking the column titles will sort the column. Clicking again will sort in the opposite order.&lt;/li&gt;&lt;li&gt;Output is limited to ten students per page. If more than ten students exist, use the page feature at the bottom of the list to view more students.&lt;/li&gt;&lt;li&gt;Click the &lt;img src=\'images/open.gif\'&gt; next to the student\'s name to populate the Student Detail section.&lt;/li&gt;&lt;/ol&gt;";
		var Section5Head ="Detail";
		var Section5HelpTitle ="Trainee Details";
		var Section5HelpBody ="This section shows a the details of a student\'s activities.&lt;ol&gt;&lt;li&gt;Click on &lt;img src=\'images/u.gif\'&gt; to expand the section and click &lt;img src=\'images/d.gif\'&gt; to collapse the section.&lt;/li&gt;&lt;li&gt; For a PDF of the report that can be printed, saved, and emailed, click the &lt;b&gt;This report as PDF&lt;/b&gt; button on the right side of the page.&lt;/li&gt;&lt;li&gt;Additional actions are available below that button, including a quick method to send an email to Penn Foster regarding that student.&lt;/li&gt;&lt;li&gt;All reports are in PDF format and you will be prompted to Save or Open the PDF. &lt;/li&gt;&lt;/ol&gt;&lt;center&gt;&lt;a href=\'http://www.adobe.com/products/acrobat/readstep2.html\' target=\'_blank\'&gt;&lt;img src=\'images/pdf.gif\' border=\'0\'&gt; Download Free Adobe Reader&lt;/a&gt;&lt;/center&gt;";
		var Section6Head ="User Settings";
		var Section6HelpTitle ="Account Settings";
		var Section6HelpBody ="To change your password, enter your new password twice to avoid typos. &lt;P&gt;Your password must:&lt;UL&gt;&lt;LI&gt;Not contain the user\'s account name or parts of the user\'s full name that exceed two consecutive characters&lt;/LI&gt;&lt;LI&gt;Be at least seven(7) characters in length&lt;/LI&gt;&lt;LI&gt;not be similar to any previously used password&lt;/LI&gt;&lt;LI&gt;Contain characters from three(3) of the following four(4) categories&lt;/LI&gt;&lt;ol&gt;&lt;li&gt;English uppercase characters (A through Z)&lt;/li&gt;&lt;li&gt;English lowercase characters (a through z)&lt;/li&gt;&lt;li&gt;Base 10 digits (0 through 9)&lt;/li&gt;&lt;li&gt;Non-alphabetic characters \(for example, \!\, \$\, \#\, \%\)&lt;/li&gt;&lt;/ol&gt;&lt;/UL&gt;";
		
		