// Cross frame spoofing counter measure. This will trigger an error if XSS is being used, and there is an error catch that will relocate the URL.
// Written by Barry Chapman and Gerard Konars 2008.
// ------------------------------------------------
//   --rev 007--
function childFrameCheck() { 


    try {	

		var topdom = top.document.domain;
		// setting the variable below will trigger a permission denied error if topdom is not on the same domain.
		var triggersError = " " + topdom;
//		alert("TRY: \n" + topdom + "\n" + docdom);
		}
	catch (oException) {
/*				
		function confirmation() {
			var docdom = document.domain;
			var answer = confirm("CATCH: \n" + docdom + "\nReload page?")
			if (answer){
				window.location.href = "http://" + docdom + "/";
			}
			else{
				return false;
			}
		}

		confirmation();
*/
		var docdom = document.domain;
		window.location.href = "http://" + docdom + "/";

	}
}

