//Not so full screen pop-up
	function helpscreen() {
	var winwidth = 600;
	var winheight = 490;
	window.open("","window","left=100,top=20,menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=1,resizable=1,width=" + winwidth + ",height=" + winheight + "");
	}

function showGroup(btn, id, color)
{
	var dropDown = $(id);
	var img = btn.getElementsByTagName('img')[0];

	if (dropDown.visible()) {
		dropDown.hide();
		img.src = '/images/16-' + color + '-add.png';
		img.title = 'Show More Info';
		img.alt = 'more';
	} else {
		dropDown.show();
		img.src = '/images/16-' + color + '-remove.png';
		img.title = 'Show Less Info';
		img.alt = 'less';
	}
}


function show(id)
{
	el = document.getElementById(id);
	if (el.style.display == 'none')
	{
		el.style.display = '';
		el = document.getElementById('more' + id);
		el.innerHTML = '[-]';
		    
	} else {
		el.style.display = 'none';
		el = document.getElementById('more' + id);
		el.innerHTML = '[+]';		
	}
}

function d_show(id)
{
	el = document.getElementById(id);
	if (el.style.display == 'none')
	{
		el.style.display = '';
		el = document.getElementById('more' + id);
		el.innerHTML = '<img src=\"/images/download-less.gif\" width=\"120\" height=\"20\" alt=\"Download Less\" />';
		    
	} else {
		el.style.display = 'none';
		el = document.getElementById('more' + id);
		el.innerHTML = '<img src=\"/images/download-more.gif\" width=\"120\" height=\"20\" alt=\"Download More\" />';		
	}
}

function e_show(id)
{
	el = document.getElementById(id);
	if (el.style.display == 'none')
	{
		el.style.display = '';
		el = document.getElementById('more' + id);
		el.innerHTML = '<img src=\"/images/remov_16.gif\" width=\"16\" height=\"16\" alt=\"Download Less\" />';
		    
	} else {
		el.style.display = 'none';
		el = document.getElementById('more' + id);
		el.innerHTML = '<img src=\"/images/sinfo_16.gif\" width=\"16\" height=\"16\" alt=\"Download More\" />';		
	}
}

function f_show(id)
{
	el = document.getElementById(id);
	if (el.style.display == 'none')
	{
		el.style.display = '';
		el = document.getElementById('more' + id);
		el.innerHTML = '[less downloads]';
		    
	} else {
		el.style.display = 'none';
		el = document.getElementById('more' + id);
		el.innerHTML = '[view downloads]';		
	}
}

function g_show(id)
{
	el = document.getElementById(id);
	if (el.style.display == 'none')
	{
		el.style.display = '';
		el = document.getElementById('more' + id);
		el.innerHTML = '<img src=\"/images/24-em-up.png\" alt=\"Show More Downloads\" />';
		    
	} else {
		el.style.display = 'none';
		el = document.getElementById('more' + id);
		el.innerHTML = '<img src=\"/images/24-em-down.png\" alt=\"Show Less Downloads\" />';		
	}
}

<!--
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Cyanide_7 ::  */

var isNN = (navigator.appName.indexOf("Netscape")!=-1);

function autoTab(input,len, e) {
  var keyCode = (isNN) ? e.which : e.keyCode; 
  var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
  if(input.value.length >= len && !containsElement(filter,keyCode)) {
    input.value = input.value.slice(0, len);
    input.form[(getIndex(input)+1) % input.form.length].focus();
  }

  function containsElement(arr, ele) {
    var found = false, index = 0;
    while(!found && index < arr.length)
    if(arr[index] == ele)
    found = true;
    else
    index++;
    return found;
  }

  function getIndex(input) {
    var index = -1, i = 0, found = false;
    while (i < input.form.length && index == -1)
    if (input.form[i] == input)index = i;
    else i++;
    return index;
  }
  return true;
}
//-->

function clicker1(){
	var thediv=document.getElementById('displaybox');
	if(thediv.style.display == "none"){
		thediv.style.display = "";
		thediv.innerHTML = "<table style='background-color:white;color:black;' border='0'><tr><td align='center' valign='middle'><a href='#' onclick='return clicker1();' style='color:red;font-size:16px;'><b>CLOSE SCREEN</b></a><br/><br/></td></tr><tr><td style='background-color:#ececec;font-size:14px;color:green;'>Main Street Softoworks, Inc. production servers use <i>Extended Validation</i> SSL certificates (EVSSL).<br/><br/>Depending on which Browser you use, you should see a green navigation bar (or green in the bar) for the EV cert to be valid. Several images below show examples of our EV cert in several common browsers. If you have any questions regarding the security of this system then please <a href='/content/contact.html'>contact us</a> directly.</td></tr><tr><td><img alt='security codes' src='/images/evcerts.gif' border='0' /><br/><br/></td></tr><tr><td><a href='#' onclick='return clicker1();' style='color:red;font-size:16px;'><b>CLOSE SCREEN</b></a></td></tr></table>";
	}else{
		thediv.style.display = "none";
		thediv.innerHTML = '';
	}
	return false;
}
	
function clicker2(){
	var thediv=document.getElementById('displaybox2');
	if(thediv.style.display == "none"){
		thediv.style.display = "";
		thediv.innerHTML = "<table width='100%' height='100%' style='background-color:green;'><tr><td align='center' valign='middle' width='100%' height='100%'><a href='#' onclick='return clicker2();' style='color:white;'>CLOSE SCREEN</a><br/><br/><img alt='security codes' src='/images/cv_card.jpg' width='569' height='223' border='0' /><br/><br/><a href='#' onclick='return clicker2();' style='color:white;'>CLOSE SCREEN</a></td></tr></table>";
	}else{
		thediv.style.display = "none";
		thediv.innerHTML = '';
	}
	return false;
}
