        var onoff="on"
	var popupref="http://www.dawningtruth.com/exitpopup.htm"

	function openpopup(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w - 10);
	var wint = (0);
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}

	function get_cookie(Name) {
	//this function is used only if you had selected popup to load ONCE per session
	//You may remove this function if variable "onoff" above is set to "off"
	  var search = Name + "="
	  var returnvalue = "";
	  if (document.cookie.length > 0) {
	    offset = document.cookie.indexOf(search)
	    if (offset != -1) { // if cookie exists
	      offset += search.length
	      // set index of beginning of value
	      end = document.cookie.indexOf(";", offset);
	      // set index of end of cookie value
	      if (end == -1)
	         end = document.cookie.length;
	      returnvalue=unescape(document.cookie.substring(offset, end))
	      }
	   }
	  return returnvalue;
	}
	
	function loadpopup(){
	if (onoff=="on"){
	if (get_cookie('alreadypopped')==''){
	openpopup(popupref,'name','320','335','yes')
	document.cookie="alreadypopped=yes"
	}
	}
	else
	openpopup(popupref,'name','320','335','yes')
	}
	
	loadpopup()