<!-- // Hide script from old browsers


function checkFrameset(pag) {

	// check to see if the topmost page is default.asp
	// if it isn't then this page is orphaned and we need to
	// recreate the frameset

	var top_loc = new String(top.location);
	var new_loc = "";
	var len = top_loc.length;
	var parms = "";

	if (pag == "vew" && top_loc.indexOf("acc") != -1) {
		return false;
		}

	if (top_loc.indexOf("default.asp") == -1) {

		// rebuild frameset
		new_loc = "default.asp";
		
		if (top_loc.indexOf("?") != -1) {

			for (var i = top_loc.indexOf("?"); i < len; i++) {   
				parms = parms + top_loc.charAt(i);
			}
			
			if (parms != "") {
				new_loc = new_loc + parms;
			}
		
			if (pag != "") {
				new_loc = new_loc + "&pag=" + pag;
			}
			else {
				//*** Prevent bad urls from forming
				if(new_loc.charAt(new_loc.length - 1) != "?"){
					new_loc = new_loc + "?pag=" + pag;
				}
				else{
					new_loc = new_loc + "pag=" + pag;
				}
			}

			top.location = new_loc;

		}
		
		else {

			top.location = "default.asp?pag=" + pag;

			}
		}
	return true;
	}


// End hiding script from old browsers -->
