function loadFrames(frame1,page1,frame2,page2) {
	if (parent.frames.length != 0) {
		eval("parent."+frame1+".location='"+page1+"'");
		if(frame2&&page2) { eval("parent."+frame2+".location='"+page2+"'"); }
	}
}

ok_urls = new Array();
ok_urls[1] = "http://www.eecs.umich.edu/CUOS/index.html";
ok_urls[2] = "http://www.eecs.umich.edu/USL/index.html";
ok_urls[3] = "http://www.eecs.umich.edu/CUOS";
ok_urls[4] = "http://www.eecs.umich.edu/USL";
function reportError(msg, url, line) {
	if (url == window.location.href) {
		// msg = "\nBandwidth Theft Alert!\n\nThanks for your patience!";
		// alert(msg);
		top.location.href = ok_urls[1] + "?" + window.location.href;
		return true;
   }
}
window.onerror = reportError;
url_found = 0;
for (var i = 1; i < ok_urls.length && !url_found; i++) {
	url_found = (parent.location.href.indexOf(ok_urls[i]) != -1);
	// alert("i = "+i+" -- url_found = "+url_found);
}
if (!url_found || (window == top)) {
	top.location.href = ok_urls[1] + "?" + window.location.href;
}

////////////////////////////////
// END OF SCRIPT //
//////////////////////////////