<!--
//alert user access code incorrect
var qs = new Querystring();
var msg1, msg2
var url = window.location.href;
//English page names have a suffix of _en
if(url.indexOf('_en', 0) != -1)
{
	msg1 = 'The Access Code you entered is not in our records.\n\nPlease try again.';
	msg2 = 'Please enter your Access Code';
}
else
{
	msg1 = 'El Código de Acceso que ingresó no está en nuestros registros.\n\nPor favor, inténtelo de nuevo.';
	msg2 = 'Por favor, ingrese su Código de Acceso.';
}

switch(qs.get("grouperror"))
{
	case '1' :
		alert(msg1);
		break;
}

function validateLogin() {
	var objForm = document.forms["frmAccessLogin"];
		
	if (!objForm.AccessCode.value || objForm.AccessCode.value == 'Código de Acceso') 
	{
		alert(msg2);
	}		
	else
	{
		objForm.submit();
	} 
}

function popClinition(fileName)
{
	var newWin = window.open(fileName, 'newWin', 'height=400px, width=400px, resizable=0, scrollbars=0');
	newWin.focus();
}

/* Client-side access to querystring name=value pairs
	Version 1.2.3
	22 Jun 2005
	Adam Vandenberg
*/
function Querystring(qs) { // optionally pass a querystring to parse
	this.params = new Object()
	this.get=Querystring_get
	
	if (qs == null)
		qs=location.search.substring(1,location.search.length)

	if (qs.length == 0) return

// Turn <plus> back to <space>
// See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1
	qs = qs.replace(/\+/g, ' ')
	var args = qs.split('&') // parse out name/value pairs separated via &
	
// split out each name=value pair
	for (var i=0;i<args.length;i++) {
		var value;
		var pair = args[i].split('=')
		var name = unescape(pair[0])

		if (pair.length == 2)
			value = unescape(pair[1])
		else
			value = name
		
		this.params[name] = value
	}
}

function Querystring_get(key, default_) {
	// This silly looking line changes UNDEFINED to NULL
	if (default_ == null) default_ = null;
	
	var value=this.params[key]
	if (value==null) value=default_;
	
	return value
}


/***********************************************
* ProHTML Ticker script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var tickspeed=2000 //ticker speed in miliseconds (2000=2 seconds)
//var enablesubject=0 //enable scroller subject? Set to 0 to hide
var timer;

if (document.getElementById)
{
	document.write('<style type="text/css">\n')
	document.write('.dropcontent{display:none;}\n')
	document.write('</style>\n')
}

var selectedDiv=0
var totalDivs=0

function contractall()
{
	var inc=0
	while (document.getElementById("dropmsg"+inc))
	{
		document.getElementById("dropmsg"+inc).style.display="none"
		inc++
	}
}


function expandone()
{
	var selectedDivObj=document.getElementById("dropmsg"+selectedDiv)
	contractall()
	selectedDivObj.style.display="block"
	selectedDiv=(selectedDiv<totalDivs-1)? selectedDiv+1 : 0
	timer = setTimeout("expandone()",tickspeed);
}

function startscroller()
{
	while (document.getElementById("dropmsg"+totalDivs)!=null)
	totalDivs++
	expandone();
}

if (window.addEventListener) window.addEventListener("load", startscroller, false)
else if (window.attachEvent) window.attachEvent("onload", startscroller)

function pausescroller()
{
	clearTimeout(timer);
}


//-->
