function submitform()
{
	document.Form1.action = 'https://secure.certificatetrust.com/realage/checkout.php';
	document.Form1.submit();
}

function submitPage(aLink) 
{
	document.Form1.action = aLink;
	document.Form1.submit();	
}	
	
function popup(page,width,height)
{
	newpage=window.open(page, "popwindow","location=no,scrollbars=no,resizable=no,width="+width+",height="+height+",left=100,top=0");
}

function openPrintPage(aPage)
{
	window.open(aPage, "PrintWindow", "menubar=1,titlebar=1,resizable=1,scrollbars=1,left=0,top=0,width=650,height=480")
}

function clearCheck(checkbox1) 
{
	checkbox1.checked = false;
}

function swapImageButton(aImage, aThis)
{
	aThis.src = aImage;
}

function MM_swapImage() { //v2.0
	var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
	for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
		objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
		if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
			(objStr.indexOf('document.all[')   ==0 && document.all   ==null))
			objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
		obj = eval(objStr);
		if (obj != null && obj != stuck) {
			swapArray[j++] = obj;
			swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
			obj.src = MM_swapImage.arguments[i+2];
	} }
	document.MM_swapImgData = swapArray; //used for restore
	}
	var stuck = new Image;

// THIS SCRIPT PREVENTS USER FROM SELECTING MORE THAN THREE (or Four or whatever value you give it) OPTIONS
function checkThree(quest, index, i, allow) 
{
	var intQcnt = 0;

	for (var n = 1; n <= i ; n ++) {
		if ( eval("document.Form1." + quest + "_" + n + ".checked") == true) {
			intQcnt = intQcnt + 1;
		}
	}
	if (intQcnt > allow) {
		eval("document.Form1." + quest + "_" + index).checked = false;
	}
}	


	//clears "None of the Above" if other options are checked		
	function ClearChecked( val ) 
	{
		document.forms[0].item(val).checked = false;
	}
	
	//clears other options if "None of the Above" is checked
	function ClearAll(question, size, textexist)
	{
		var n;
		for (n = 0; n < size ; n ++) 
		{
			document.forms[0].item(question + ":" + n).checked = false;
		}
		if(textexist == 1)
			document.forms[0].item(question + "_text").value = "";
	}
	
	// Toggles the display of a div. Param = the div ID
	function blocking(nr)
	{
		var current;
		if (document.layers)
		{
			current = (document.layers[nr].display == 'none') ? 'block' : 'none';
			document.layers[nr].display = current;
		}
		else if (document.getElementById)
		{
			current = (document.getElementById(nr).style.display == 'none') ? 'block' : 'none';
			document.getElementById(nr).style.display = current;
		}
	}
