<!--
var overTab = false;

function onOrDef(td) {
			var tab = document.getElementById(td).parentNode;
			if (tab.className == 'tabOFF') {
				tab.className='tabON';
			}
		}
function offOrDef(td) {
	var tab = document.getElementById(td).parentNode;
	if (tab.className == 'tabON') {
		tab.className='tabOFF';
	}
}

function clickLink(linkId)
{
  var fireOnThis = document.getElementById(linkId)
  if (document.createEvent)
  {
    var evObj = document.createEvent('MouseEvents')
    evObj.initEvent( 'click', true, false )
    fireOnThis.dispatchEvent(evObj)
  }
  else if (document.createEventObject)
  {
    fireOnThis.fireEvent('onclick')
  }
}

function setSelectedCreditCard(name) {
	document.getElementById('creditCardForm:hidden1').value=name;
}

//function setTab (id) {

			//	document.getElementById(id).style.color='#352062';
				//document.getElementById(id).style.backgroundColor='#c8c5d7';
//}

function pickerBG(id,color) {
	document.getElementById(id).style.backgroundColor = "#"+color;
}

function setUserAgent(id) {
	document.getElementById(id).value=navigator.userAgent;
}

function show(id) {
	document.getElementById(id).style.display="block";
}

function showhide(id) {
	var tog = document.getElementById(id);
	tog.className=(tog.className=='hidden') ? 'unhidden' :'hidden';
}

function newPopup(url) {
	popupWindow = window.open(
		url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}

function activeTab(id) {
		
		document.getElementById(id).style.fontcolor="red";
		
	
}
var newwindow;
function termsPopup(url)
{
	newwindow=window.open(url,'guidelines','height=800,width=800,left=200,top=10,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=no');
	if (window.focus) {newwindow.focus()}
}

function printTerms() {
    var s = document.theForm.tc.value;
    var regExp=/\n/gi;
    s = s.replace(regExp,'<br />');
    pWin = window.open('','pWin','height=1,width=1,left=200,top=10,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=no');
    pWin.document.open();
    pWin.document.write('<html><head></head><body>');
    pWin.document.write(s);
    pWin.document.write('</body></html>');
    pWin.print();
    pWin.document.close();
    pWin.close();
}

function reloadParent() {
	 window.close();
		if (!window.opener.closed) {
			window.opener.location.href = window.opener.location.href;
			} 

}

//-->
