function specSwap(whichOn, whichOff ) {
	document.getElementById(whichOn + "img").src = "/images/tab_" + whichOn + "_on.gif";
	document.getElementById(whichOff + "img").src = "/images/tab_" + whichOff + "_off.gif";
	document.getElementById(whichOn + "tab").style.display = "";
	document.getElementById(whichOff + "tab").style.display = "none";
}
function sectionExpand(sectName) {
	theSect = document.getElementById(sectName);
	if (theSect.className == 'full') {
		sectLength = theSect.childNodes.length;
		for (sl=0; sl < sectLength; sl++) {
			if (theSect.childNodes[sl].className == 'expanded') {
				theSect.childNodes[sl].className = 'compressed';
			}
		}
		theSect.className = 'partial';
	}else{
		theSect.className = 'full';
	}
}
function questionExpand(qName) {
	sectName = qName.split("_",1);
	document.getElementById(sectName).className = "full";
	document.getElementById(qName+"ans").className = ((document.getElementById(qName+"ans").className == 'compressed') ? 'expanded' : 'compressed');
	}
function keyPops(theUrl) {
	window.open(theUrl,'popupWin','width=550,height=250,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no')
}

function UpdateiFrame() {
    var frame = document.getElementById("iFrameCheckout");
    var div   = document.getElementById("iFrameDiv");
    div.innerHTML = window.frames[0].document.forms[0].innerHTML;
}

function iFrameReSize()
{
    //find the height of the internal page
    var the_height=document.getElementById('ifrm').contentWindow.document.body.scrollHeight;

    //change the height of the iframe
    document.getElementById('ifrm').height=the_height;
}

