// JavaScript Document

<!--
function include(lyr, url)
{
	if(document.all)
	{
		// IE version
		try
		{
			var xml = new ActiveXObject("Microsoft.XMLHTTP");
			xml.open("GET", url, false);
			xml.send();
			document.getElementById(lyr).innerHTML = xml.responseText;
		}
		catch(e)
		{
			var xml = new ActiveXObject("MSXML2.XMLHTTP.4.0");
			xml.open("GET", url, false);
			xml.send();
			document.getElementById(lyr).innerHTML = xml.responseText;
		}
	}
	else
	{
		// Mozilla/Netscape 6+ version
		var xml = new XMLHttpRequest();
		xml.open("GET", url, false);
		xml.send(null);
		document.getElementById(lyr).innerHTML = xml.responseText;
	}
}

function checkAll(form)
{
	for(var i = 0; i < document.forms[1].elements.length; i++)
	{
		var str = document.forms[1].elements[i].name;
		if(str.indexOf(form) != -1)
		{
			if(document.forms[1].elements[i].checked == false)
			{
				document.forms[1].elements[i].checked = true;
			}
		}
	}
}

function unCheckAll(form)
{
	for(var i = 0; i < document.forms[1].elements.length; i++)
	{
		var str = document.forms[1].elements[i].name;
		if(str.indexOf(form) != -1)
		{
			if(document.forms[1].elements[i].checked == true)
			{
				document.forms[1].elements[i].checked = false;
			}
		}
	}
}

function popup(mylink, windowname)
{
	if (! window.focus) return true;
	var href;
	if (typeof(mylink) =='string')
		href = mylink;
	else
		href=mylink.href;
	window.open(href, windowname, 'width=550,height=400,status=yes,scrollbars=no');
	return false;
}

function popup2(mylink, windowname)
{
	if (! window.focus) return true;
	var href;
	if (typeof(mylink) =='string')
		href = mylink;
	else
		href=mylink.href;
	window.open(href, windowname, 'width=670,height=700,status=yes,scrollbars=yes');
	return false;
}

// C.2004 by CodeLifter.com
var nW,nH,oH,oW;

function zoomToggle(iWideSmall,iHighSmall,iWideLarge,iHighLarge,whichImage){
oW=whichImage.style.width;oH=whichImage.style.height;
if((oW==iWideLarge)||(oH==iHighLarge)){
nW=iWideSmall;nH=iHighSmall;}else{
nW=iWideLarge;nH=iHighLarge;}
whichImage.style.width=nW;whichImage.style.height=nH;
}

//-->