// Popups Must Die! Javascripts
// created August 14th
// Kendall Dawson <kendall@paradigm.nu>
//
//
// last updated 9/25/99
//
// ---------------------------------------------------------------------------------------
// freeware titles


var killad 			= "A small, effective Popup killer for Windows 9x and NT. It is light on your system\'s resources and you can add windows to the list if it misses one. \n\nIt has cool sound effects, and a running log of how many popups you've killed along the way!\n\nFile Size: 42 Kb\n\nWarning - there are 5 Popup windows on the way into his page. Just so you are aware of this before you get there. The reason they are there is so you can test his program after you unzip it! After you start KillAd, go ahead, reload the page to watch it destroy the Popup windows!";
killad_url			= "http://www.fortunecity.com/skyscraper/apple/759/"

var noads 			= "The Best New Popup Killer!\n\nNoAds now supports killing Popup Ads on the AOL 4.0 Browser. This title is Number ONE on our Poll !! If you are on America Online, check this out!\n\nNoAds is a small program that resides in your Windows 9x and NT system tray and is light on system resources. You simply add the title of the window you want to kill and it goes to work. NoAds can play a sound when you kill a window and the program can be turned on and off quite easily. Small, and very effective program.\n\nFile Size: 72 Kb";
noads_url			= "http://www.firase.com"

var popoff	 		= "Software designed for Windows 9x and NT.\n\nPopOff! is a tiny program that runs in the background, starting up automatically when you start your web browser. Since PopOff! only filters out commands for windows that are opened without user interaction, all other web page functionality remains intact while you browse.\n\nFile Size: 1.49 Mb";
popoff_url			= "http://www.intercantech.com/"

var popup_killer 	= "PopUp Killer is a small program for Windows 9x and NT which can be configured to automatically close previously selected Explorer, Netscape, Opera and NeoPlanet Windows.\n\nAn intelligent program that can detect potential PopUp windows and close them so fast that you will not even have the time to see them!\n\nCurrently, this program is ranked number 2 in our poll!\n\nFile Size: 3.02 Mb";
popup_killer_url	= "http://software.xfx.net/utilities/popupkiller/"

var pow				= "Software designed for Windows 9x and NT.\n\nPOW! is a small utility that runs in the system tray. You can configure POW! to close any new popups that you run across, so if it doesn't close them already, you can easily add/remove them at any time.\n\nPOW is user-configurable, and people can even swap configuration lists!\n\nFile Size: 171 Kb";
pow_url				= "http://www.analogx.com/contents/download/network/pow.htm"

var proxomitron		= "By simply selecting some of the many included filters, you can say goodbye to common nuciances like animated GIFs, pop-up windows, advertising banners, dynamic HTML and more. Best of all, these rules are not hard-coded. More than simply flexible - \n\nYou can completely change them, make them more powerful, and of course, add rules of your own! If it can be written in HTML, it can probably be controled by the Proxomitron.\n\n\This program is recommended for advanced and power users!\n\nThis isn\'t Freeware - \n\nThe Proxomitron is, in fact, ShonenWare!\n\nFile Size: n/a";
proxomitron_url		= "http://members.tripod.com/Proxomitron/"

var smart_proxy		= "A Proxy Server is basically a 'Filter'. All your Internet requests get passed through the filter first, before going out on the Net. Using this, you can do cool stuff- like filter out Popup Ads for example!\n\nBy making a small change to your browser, you can ELIMINATE BANNER ADS AND GEOCITIES POPUP WINDOWS FOREVER!\n\nYou can also take advantage of several services. This change does not slow down your browser by requiring it to download all its web pages through a proxy.\n\nFile Size: n/a";
smart_proxy_url		= "http://www.slemmer.com/smartproxy.shtml"

var surf_in_peace	= "Software designed for Windows 9x and NT.\n\nVery low CPU useage, you won't even know its running. Dumps its kill list out to a text file so you can distribute it to friends. Comes with a working initial list as a starting example. Windows to automatically close can be determined by name (including wild cards), size range, or a combination of both.\n\nFile Size: 1.90 Mb";
surf_in_peace_url	= "http://www.iconlabs.net/"

var web_washer		= "Removes advertising on Web pages while you surf. Filters pop-up windows, animated images, referer. It offers detailed statistical functions and easy installation and even a Smart Update with push-button upgrade.\n\nAllows user to run WebWasher as a proxy that others can access and it can write a Common Logfile. WebWasher does not modify any existing winsock DLL or Internet settings or your Windows registry. Free for personal, non-commercial home use or for educational institutions 30 day ´Try and Buy´ for business users.\n\nFile Size: 629 Kb";
web_washer_url		= "http://www.siemens.de/servers/wwash/wwash_us.htm"

var freetitle 	= new Array("","", killad, noads, popoff, popup_killer, pow, proxomitron, smart_proxy, surf_in_peace, web_washer,"");
var weburlfree	= new Array("","", killad_url, noads_url, popoff_url, popup_killer_url, pow_url, proxomitron_url, smart_proxy_url, surf_in_peace_url, web_washer_url,"");

function populatefreeInfo(selection) {
document.freetitle.freeoutput.value = freetitle[selection.selectedIndex];
} 
function checkURL_free(){

	sel= document.freetitle.freetitle.selectedIndex
	url= weburlfree[sel]

	if (document.freetitle.freeoutput.value == '') {
	alert('Sorry, you did not make a valid selection. Choose a valid title from the drop-down list, then click the button.')
	void(0);
	}
	else {
	window.open(url,"newWin","height=400,width=500,resizable,location=yes,status=yes,toolbar=yes,menubar=yes,scrollbars=yes")
	}
	
}

//
// ---------------------------------------------------------------------------------------
// shareware titles

var ad_close		= "River's Edge Software:\n\nThis program was designed to close windows with specified titles. This program allows you to close these windows and many others, by specifying title in the program configuration.\n\nIt comes preconfigured with a bunch of sites already. The trial works for 15 uses before it expires.  The cost to register is USD $14.95 and they offer secure, online transactions.\n\nFile Size: 1.1 Mb"
var ad_close_url	= "http://adclose.hypermart.net/adclose.html";
 
var adfilter		= "ADscience Ltd.\n\nADfilter removes web ads and popup windows forever! 12 intelligent filters that remove the vast majority of all intrusive web advertising and other noise, the ability to remove the ADfiltered! link, settings to protect your online privacy, plus the ability to update ADfilter's filters automatically every day!\n\nIt costs USD $19.95 to purchase and they accept credit-cards and offer secure online transactions.\n\nFile Size: 329 Kb"
var adfilter_url	= "http://www.adfilter.com/"

var atguard			= "WRQ, Inc.\n\nAtGuard lets you surf faster by blocking out annoying advertisements, graphics and animated GIFs. It also lets you protect your privacy by blocking out cookies and preventing Web sites from tracking the referrer \(or previous\) pages that you visit. AtGuard also comes with a personal firewall that lets you control who can have access to your PC and it lets you choose whether you wish to run JavaScripts, ActiveX controls, and Java applets on your computer. It also kills Popup Ads !!!\n\nIt costs USD $29.95 to purchase and they accept credit-cards and offer secure online transactions.\n\nFile Size: 1.41 Mb"
var atguard_url		= "http://www.softseek.com/Internet/Web_Browsers_and_Utilities/Internet_Accelerators/Review_22562_index.html"

var closeit			= "Real Marketing\n\nA Windows 9x and NT program that eliminates Popup ads. You can add keywords with filtering options to detect and remove Popup ads. \'Sitecensor Version\' gives the user the power to have the program password protected, so if kids want to disable and view material they\'re not supposed to, they would need the password to disable.\n\nIt costs USD $19.95 to register and they take credit cards and offer secure online transactions. You can check out a 30-Day free trial and see screenshots on their website.\n\nFile Size: 1.67 Mb"
var closeit_url		= "http://www.real-marketing.com/closeit/"

var close_popup		= "Take a Hike Software\n\nOn their Web site they claim they were the \'First Popup Closer ever\'. Close Popup will detect and close those annoying popup windows from any web site!  It runs as a tray icon, which you can disable if you dislike clutter in your tray.  Close Popup detects when Netscape, or Internet Explorer are opened and starts looking for popups to close, when your browser closes, it stops looking, you can also manually turn off the searching.\n\nIt costs USD $20.00 to purchase and they take credit cards and offer secure online transactions.\n\nFile size: 30 Kb"
var close_popup_url	= "http://www.homeonthewww.com/ryan/"

var intermute		= "This browser proxy program blocks the download of ads, animated gifs, background music, and images, and disables Java applets, JavaScript, cookies, and referrers. Choose what to disable for all sites and make exceptions for sites you trust.\n\nInterMute works well even if you connect to the Internet through a proxy server. The only flaw in this otherwise fine program is that the documentation is not available until the program has been installed. They offer a free trial and it costs USD$19.95 if you decide to register it.\n\nFile Size: 898 Kb"
var intermute_url	= "http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=000T0J"

var popup_hunter	= "Jetbit Systems\n\nProgram for Windows 9x and NT that closes any popup banner window in free sites. Now with a new interface. Work both all version of Netscape and Internet Explorer. Shareware version offers a 30 day evaluation period. It costs USD $13.00 to register.\n\nFile Size: 256 Kb\n\nWarning! - This site is hosted on Virtual Ave and they have some REALLY annoying Popup Ads on the way into their site!"
var popup_hunter_url= "http://jetbit.virtualave.net/"

var web_washer		= "Removes advertising on Web pages while you surf. Filters pop-up windows, animated images, referer. It offers detailed statistical functions and easy installation and even a Smart Update with push-button upgrade.\n\nAllows user to run WebWasher as a proxy that others can access and it can write a Common Logfile. WebWasher does not modify any existing winsock DLL or Internet settings or your Windows registry. Free for personal, non-commercial home use or for educational institutions 30 day ´Try and Buy´ for business users.\n\nFile Size: 629 Kb";
web_washer_url		= "http://www.siemens.de/servers/wwash/wwash_us.htm"

var sharetitle 	= new Array("","", ad_close, adfilter, atguard, closeit, close_popup, intermute, popup_hunter, web_washer,"");
var weburlshare	= new Array("","", ad_close_url, adfilter_url, atguard_url, closeit_url, close_popup_url, intermute_url, popup_hunter_url, web_washer_url,"");


// ---------------------------------------------------------------------------------------


function populateshareInfo(selection) {
document.sharetitle.shareoutput.value = sharetitle[selection.selectedIndex];
} 
function checkURL_share(){

	sel= document.sharetitle.sharetitle.selectedIndex
	url= weburlshare[sel]

	if (document.sharetitle.shareoutput.value == '') {
	alert('Sorry, you did not make a valid selection. Choose a valid title from the drop-down list, then click the button.')
	void(0);
	}
	else {
	window.open(url,"newWin","height=400,width=500,resizable,location=yes,status=yes,toolbar=yes,menubar=yes,scrollbars=yes")
	}
	
}

// ---------------------------------------------------------------------------------------

// begin main page scripts

var version="new";
if (navigator.appName == "Netscape") {
	if (navigator.appVersion.substring(0, 3) == "2.0") {
	version = "old";
	}
	if (navigator.appVersion.substring(0, 3) == "3.0") {
	version = "old";
	}
	if (navigator.appVersion.substring(0, 3) == "4.0") {
	version = "new";
	}
	if (navigator.appVersion.substring(0, 3) == "4.5") {
	version = "new";
	}
	if (navigator.appVersion.substring(0, 3) == "4.6") {
	version = "new";
	}
}
if (navigator.appName == "Microsoft Internet Explorer") { 
	if (navigator.appVersion.substring(0, 3) == "2.0") {
	version = "old";
	}
	if (navigator.appVersion.substring(0, 3) == "3.0") {
	version = "old";
	}
	if (navigator.appVersion.substring(0, 3) == "4.0") {
	version = "new";
	}
	if (navigator.appVersion.substring(0, 3) == "5.0") {
	version = "new";
	}
}
// Message
function detectMsg(){
window.onerror = handleError
}

// Custom Error Messages
function handleError(msg, URL, lineNum) {
        var errWind = window.open("","errors","HEIGHT=270,WIDTH=400")
        var wintxt = "<HTML><BODY BGCOLOR=White>"
        wintxt += "<B>An error has occurred on this page.<BR>Please report it to the Webmaster:</B>"
        wintxt += "<FORM METHOD=POST ACTION=mailTo:kendall@paradigm.nu ENCTYPE='text/plain'>"
        wintxt += "<TEXTAREA NAME='errMsg' COLS=45 ROWS=8 WRAP=VIRTUAL>"
        wintxt += "Error: " + msg + "\n"
        wintxt += "URL: " + URL + "\n"
        wintxt += "Line: " + lineNum + "\n"
        wintxt += "Client: " + navigator.userAgent + "\n"
        wintxt += "-----------------------------------------\n"
        wintxt += "Please describe what you were doing:"
        wintxt += "</TEXTAREA><P>"
        wintxt += "<INPUT TYPE=SUBMIT VALUE='Send Error Report'>"
        wintxt += "<INPUT TYPE=button VALUE='Close' onClick='self.close()'>"
        wintxt += "</FORM></BODY></HTML>"
        errWind.document.write(wintxt)
        errWind.document.close()
        return true
}

//---------------------------------------------------------------------------
// clobbering time

function doitNow(){

	if(confirm("This is you last chance! Are you sure you want to do this?")){
	hitMe();
	return true;
	}
	else {
	void(0);
	}
}

function hitMe(){

var wins=0
var num= (document.test.num.value -1)

// one of these days we won't have to code for 2 different browsers
// when they finally get their act together and stop screwing us over!

		if (navigator.appName == "Netscape") {
				while(wins <= num) {
				popOneNS()
				wins++
				}
		}				
		
		else {
				if (navigator.appName == "Microsoft Internet Explorer"){
						while(wins <= num){
						popOneIE()
						wins++
						}
				}		
		}
		
} 

function popOneIE(){

	WoD= window.open("","","width=300,height=100,menubar=no,scrollbars=no,statusbar=no,location=no,history=no");
	WoD.document.write("<HTML><HEAD><TITLE>Window of Death</TITLE></HEAD><BODY BGCOLOR=black>");
	WoD.document.write("<BR><CENTER><FONT COLOR=white>I GONNA DIE!</FONT></CENTER><BR>");
	WoD.document.write("</BODY></HTML>");
	WoD.document.close();
}

function popOneNS(){

	WoD= window.open("","_blank","width=300,height=100,menubar=no,scrollbars=no,statusbar=no,location=no,history=no");
	WoD.document.write("<HTML><HEAD><TITLE>Window of Death</TITLE></HEAD><BODY BGCOLOR=black>");
	WoD.document.write("<BR><CENTER><FONT COLOR=white>I GONNA DIE!</FONT></CENTER><BR>");
	WoD.document.write("</BODY></HTML>");
	WoD.document.close();
}
