

//	if( isNaN( parent.tsa_script.location.match("cname=#enrollment-yesrep")) == false) {
//if( isNaN( location.search.match("ref=tsa")) ) {
//alert(location.search);
	if( isNaN( location.search.match("usr=prmcnt")) ) {
//alert(parent.tsa_script.location.hash);
		if( isNaN( location.pathname.match("trs_confirm.asp")) ) {
//alert(location.pathname);
//alert(location.search);
			if( parent.tsa_script) {
				if( isNaN( parent.tsa_script.location.hash.match("#enrolled-yesrep")) ) {
						//<%session.contents.remove("trs_id")%>
					location.replace('trs_account.asp' + location.search);
				} else if( isNaN( parent.tsa_script.location.hash.match("#enrollment-yesrep")) ) {
					location.replace('enrolled_trs.asp' + location.search);
				}
			} else if( isNaN( location.search.match("sm=2")) && isNaN( location.search.match("pin=")) ) {
				if( isNaN( location.search.match("st=1")) ) {
						//<%session.contents.remove("trs_id")%>
					location.replace('trs_account.asp' + location.search);
				} else {
					location.replace('enrolled_trs.asp' + location.search);
				}
			}
		} else {
			var script, tsaval;
			if( isNaN( location.pathname.match("enrolled_trs.asp")) ) {
				script = 'enrolled_trs.asp';
				tsaval = "#enrollment-yesrep";
			} else if( isNaN( location.pathname.match("trs_account.asp"))) {
				script = 'trs_account.asp';
				tsaval = "#enrolled-yesrep";
			} else {
				script = '';
				tsaval= '';
			}

			if( script.length > 0 && document.getElementById("trs_contact_login")) {
				if( parent.tsa_script) {
					if( isNaN( parent.tsa_script.location.hash.match(tsaval)) ) {
						document.getElementById("trs_contact_login").submit();
					}
				} else if( isNaN( location.search.match("sm=2")) ) {
					document.getElementById("trs_contact_login").submit();
				}
			}
		}
	}
//}

//	document.writeln(parent.tsa_script.document.URL);
/*
	document.writeln(parent.tsa_script.location.hash + "<br />");
	document.writeln(location.pathname + "<br />");
	document.writeln(location.search + "<br />");
*/
/*
	document.writeln(document.URL);
	document.writeln(location);
	document.writeln(document.URL);
*/

