function displayTextBoxByBrowser() {
	if (navigator.appName == "Microsoft Internet Explorer")
		document.write("<input type=\"text\" name=\"q\" size=\"12\">");
	else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4 && parseInt(navigator.appVersion) < 5) 
		document.write("<input type=\"text\" name=\"q\" size=\"6\">");
	else
		document.write("<input type=\"text\" name=\"q\" size=\"12\">");
}

function expNew(when) {
	var image = "images/ARC_icons_new.gif";
	when = new Date(when);
	date = new Date();

	if (when.getTime() > date.getTime())
	{
		document.write("<img src="+image+">")
	}
}

function getDateLastModified() {
	var myDate = document.lastModified;
	document.write(myDate);
}

function sendOpener(link) {
	if (window.opener != null)
		window.opener.location = link.href;
	window.close();
}

function jumpToDocument()
{
	if (document.documentjumpform.pdfdocuments.selectedIndex == 0)
    {
		window.open('../documents/LA2_anOverviewOfYourCurrentInstitutionalCommitment.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 1)
    {
		window.open('../documents/LA2_ApendixA.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 2)
    {
		window.open('../documents/LA2_BusinessAdministrationCompetencies.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 3)
    {
		window.open('../documents/LA2_checklistToReviewAnInstitution.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 4)
    {
		window.open('../documents/LA2_designingOrSelectingDirectAndIndirectMethods.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 5)
    {
		window.open('../documents/LA2_formatForAnnualFormat.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 6)
    {
		window.open('../documents/LA2_inventoriesOfTeachingAndAssessmentPractices.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 7)
    {
		window.open('../documents/LA2_learningDomainsOrBloomsTaxonomy.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 8)
    {
		window.open('../documents/LA2_mappingAProcess.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 9)
    {
		window.open('../documents/LA2_multiculturalStudentServices.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 10)
    {
		window.open('../documents/LA2_questionsToGroundTeaching.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 11)
    {
		window.open('../documents/LA2_scales-criterions.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 12)
    {
		window.open('../documents/LA2_studentLifeLearningOutcomeDevelopAreRespectForPeople.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 13)
    {
		window.open('../documents/LA2_studentLifeLearningOutcomes.pdf','_blank');
		return false;
	}
	else if (document.documentjumpform.pdfdocuments.selectedIndex == 14)
    {
		window.open('../documents/LA2_trackingProgressTowardsDeveolopingAndDisseminatingLearningOutcomeStatements.pdf','_blank');
		return false;
	}
	else
	{
		return false;
	}
}

function ChangeFAQPostingDisplay(counter)
{
	if (document.getElementById('FAQ' + counter).style.display == 'none')
	{
		document.getElementById('FAQ' + counter).style.display = 'inline';
	}
	else
	{
		document.getElementById('FAQ' + counter).style.display = 'none';
	}
}

function DisplayDegrees()
{
	if (document.getElementById('degrees').style.display == 'none')
	{
		document.getElementById('degrees').style.display = 'inline';
	}
}

function PrintThisPage() 
{ 
   var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
 
   sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; 
   
   var winprint=window.open("print.asp","Print",sOption); 
   
   winprint.focus(); 
}

function GetPrintContent()
{
	var PrintDiv =  document.getElementById('printcontent');
	var ContentDiv =  window.opener.document.getElementById('contentstart');
	PrintDiv.innerHTML = ContentDiv.innerHTML;
}

function GetRadioValue()
{
	var i, rad_val;
	for (i=0; i < document.state_exist.stexist.length; i++)
	{
	if (document.state_exist.stexist[i].checked)
	  {
	  rad_val = document.state_exist.stexist[i].value;
	  }
	}
	return rad_val;
}

function ClearDefineBox()
{
	if (document.description.define.value == "Describe/define program.")
		document.description.define.value = "";
}

function ClearLearnBox()
{
	if (document.description.learn.value == "Include student learning objectives.")
		document.description.learn.value = "";
}

function ClearEmploymentBox()
{
	if (document.description.employment.value == "Reminder: AA degrees should include transfer opportunities. AS, AAS, ATC, CCC, VCC programs & baccalaureate degrees should include employment opportunities.")
		document.description.employment.value = "";
}

function ClearAddInfoBox()
{
	if (document.description.addinfo.value == "(Optional) Include additional information such as contacts.")
		document.description.addinfo.value = "";
}

