
function gotoInter() {
	if(document.referrer.indexOf("http://www.claycogov.com")==-1) {
		window.alert("The Maps and information on this site are made availabe as a public service. Maps and data are to be used for reference purposes only. The data contained on this web site are subject to change. No person shall sell, give, reproduce, or receive for the purpose of selling or offering for sale, any portion of the data provided herein. See http://www.claycogov.com/county/county.php?section=AS&page=20 for more details."); 
	}
	
  var fakeLink = document.createElement ("a");
	if (typeof(fakeLink.click) == 'undefined')
		parent.location.href = "http://gisweb.claycogov.com/gis/viewer.htm";
	else
		{
	parent.location.href="http://gisweb.claycogov.com/gis/default.htm?refer=pass";
		}
}	

function gotoMap() {
	
	parent.location.href="/gis";
}
function gotoPS() {
	parent.location.href="/realEstate/realEstate.jsp";
}
function gotoPage(addr) {
	parent.mainbody.location.href=addr;
}

function refreshFrame() {
    //change URL of parent frame
    //call this function in a subframe page, between <script> and </script>
    //alert("we're in refreshFrame");
    parent.location.href = '/gis';
    //setTimeout('refreshFrame()',15000); //15 seconds later refresh parent frame
}

function popupDect() {
	var popUpsBlocked;
	var mine=window.open('','','width=1, height=1,left=0, top=0,scrollbars=no');
	if(mine)
		popUpsBlocked=false;
	else
		popUpsBlocked=true;
	mine.close();
	if(popUpsBlocked)
		alert('Please disable your pop-up blocker, \notherwise you will not be able to use some map functions.');
}

function gotoPage2(addr) {
	parent.location.href=addr;
}