//This is the master JavaScript file for the HTML Help documentation.

/* These functions (doSection, noSection) are used to make sidebars appear and disappear.
*/

function doSection (secNum){
	//display the section if it's not displayed; hide it if it is displayed
	if (secNum.style.display=="none"){secNum.style.display=""}
	else{secNum.style.display="none"}
}

function noSection (secNum){
	//remove the section when user clicks in the opened DIV
	if (secNum.style.display==""){secNum.style.display="none"}
}

function doExpand(paraNum,arrowNum){
	//expand the paragraph and rotate the arrow; collapse and rotate it back
	if (paraNum.style.display=="none"){paraNum.style.display="";arrowNum.src="arrowdn.gif"}
	else{paraNum.style.display="none";arrowNum.src="arrowrt.gif"}
}

//These functions control the behavior of the homepage go arrows.
function liteGo(spNo){
	spNo.style.background="#cc0033";
	spNo.style.color="#FFFFFF";
}

function liteOff(spNo){
	spNo.style.background="transparent";
	spNo.style.color="#000000";
}

//Insert new functions here. Please use unique identifiers and comment liberally.

function modifyTable(showID) {
	var table = document.getElementById('listTable');
	var activePoint = document.getElementsByTagName('span');
	for (var pointID = 0; (point = activePoint[pointID]); pointID++) {
		if (point.className == 'sortListActive') point.className = 'sortList';
		if (point.id == showID) point.className = 'sortListActive';	
	}
	
	for (var trID = 1; (row = table.getElementsByTagName('tr')[trID]); trID++) {
		if (row.id.indexOf("-"+showID+"-")>-1) row.style.display = '';
		else row.style.display = 'none';		
	}
	
	
}

function checkInfo(frm) {
 var q1;
 var dataRight=true;
 
 q1=frm.q1.value;
 
 	if (q1.length==0)
 	{
    dataRight=false;
		message="Please fill in all the fields marked with an asterisk.";
    alert(message);
   	}
	else
	{
		message="Your testing request has been accepted. Thank you!";
	alert(message);
	}
 return dataRight;
}


function checkInfo_en(frm) {
 var q1;

 var dataRight=true;
 
 q1=frm.q1.value;
 
	 if (q1.length==0)
	 {
		dataRight=false;
		message="Please fill in all the fields marked with an asterisk.";
		alert(message);
	  }
	else
	{
		message="Your testing request has been accepted. Thank you!";
		alert(message);
	}
 return dataRight;
}

function description(id)
{
	if (document.getElementById(id).style.display=='')
		document.getElementById(id).style.display='none';
	else
		document.getElementById(id).style.display='';
}