
//js page for local yokels. also used in search

function doConfirmAge(){
	if(confirm("Warning! Some of the material in these comic strips might be deemed inappropriate for children under 18, " +
			"be sure to get your parents permission before viewing them.\n\n" + 
			"If you are under 18 and don't have your parents permission, click the CANCEL button.\n" + 
			"If you are over 18, or have your parents permission, click the OK button\n\nThank you and God Bless.\n"))
		return true
	else
		return false
}

function newWin(){
	window.open("local_form.htm","","toolbar=no, menubar=no, height=400, width=400")
}

//for newWinTall and newWin2, if i=0 then no age warning. if i=1 then show age warning

function newWin2(x, i){
	if(i==1){
		if(doConfirmAge() == true){
			window.open(x,"")
		}
	}else{
		window.open(x,"")
	}
}

function newWinTall(x, i){
	if(i==1){
		if(doConfirmAge() == true){
			window.open(x,"")
		}
	}else{
		window.open(x,"")
	}
}