// <!-- Hide Script from old browsers

function AutoJump(destination) 
{
	window.location=destination

	//-- Syntax for in ASP script= onClick="AutoJump('#anchor')"  --//
}

function newWindow(pageName)
{
	DescWin = window.open(pageName,'Description','width=500,height=350,scrollbars=yes');
	DescWin.focus(); 
}

function closeWindow(pageName)
{
	  close() ;
}


function isUndefined(a) {
    return typeof a == 'undefined';
} 



function dl01_Val(theForm)
{
// --- Check for Q1a -- //
	var ckq1a = 0 ;
	
	if (theForm.q1a_1.checked) { ckq1a = ckq1a + 1 ; }
	if (theForm.q1a_2.checked) { ckq1a = ckq1a + 1 ; }
	if (theForm.q1a_3.checked) { ckq1a = ckq1a + 1 ; }
	if (theForm.q1a_4.checked) { ckq1a = ckq1a + 1 ; }
	if (theForm.q1a_5.checked) { ckq1a = ckq1a + 1 ; }
	if (theForm.q1a_6.checked) { ckq1a = ckq1a + 1 ; }
	
	if (ckq1a==0)  {
		alert("You did not select an answer. Please correct this.") ;
		return false ;
	}
	

// --- Return TRUE is all OKAY -- //
	return true ;
}

function dl02_Val(theForm)
{
// --- Check for Q2a_1 (radio) -- //
	  var radioSel = false;
	  var loc = 0 ;
	  
	  for (i=0;  i<theForm.q2a_1.length;  i++)
	  {
	    if (theForm.q2a_1[i].checked) { 
		radioSel = true; 
		loc = i ;
	    }
	  }

	  if (!radioSel)
	  {
	    alert("You need to select an answer for Question A. Please correct \"Question A\".");
	    return false;
	  }

// --- Check for Q2a_2 (radio) -- //
	  var radioSel = false;
	  var loc = 0 ;
	  
	  for (i=0;  i<theForm.q2a_2.length;  i++)
	  {
	    if (theForm.q2a_2[i].checked) { 
		radioSel = true; 
		loc = i ;
	    }
	  }

	  if (!radioSel)
	  {
	    alert("You need to select an answer for Question B. Please correct \"Question B\".");
	    return false;
	  }

// --- Check for Q2a_3 (radio) -- //
	  var radioSel = false;
	  var loc = 0 ;
	  
	  for (i=0;  i<theForm.q2a_3.length;  i++)
	  {
	    if (theForm.q2a_3[i].checked) { 
		radioSel = true; 
		loc = i ;
	    }
	  }

	  if (!radioSel)
	  {
	    alert("You need to select an answer for Question C. Please correct \"Question C\".");
	    return false;
	  }

// --- Check for Q2a_4 (radio) -- //
	  var radioSel = false;
	  var loc = 0 ;
	  
	  for (i=0;  i<theForm.q2a_4.length;  i++)
	  {
	    if (theForm.q2a_4[i].checked) { 
		radioSel = true; 
		loc = i ;
	    }
	  }

	  if (!radioSel)
	  {
	    alert("You need to select an answer for Question D. Please correct \"Question D\".");
	    return false;
	  }


// --- Return TRUE is all OKAY -- //
	return true ;
}

function dl03_Val(theForm)
{

// --- Return TRUE is all OKAY -- //
	return true ;
}


// End hiding script from old browsers --> 
