
// ————————— COPYRIGHT YEAR

function CopyrtYr() {
	today = new Date(); DateYear = today.getYear(); brsr=navigator.appName

	if (brsr=="Netscape") {
		if (DateYear < 99) { DateYear = DateYear + 2000
		} else { DateYear = DateYear + 1900 }
	}

	document.write(DateYear)
}


// ————————— REFERRAL EMAILER

referemail = "?subject=Go See ThiefWare.com&body=Hello, " +
"You will find this site interesting and enlightening. It features information " +
"about companies that use software to conduct unethical business practices. " +
"To find out more, go to: http://www.thiefware.com/ (ThiefWare.com). " +
"You can also sign up for their informative " +
"newsletter for updates and alerts at this URL: " +
"http://www.thiefware.com/email.news.letter/"
referemail = referemail.replace(/ /g, "%20")

function Refer() {
	referadd = prompt('Enter your friend\'s email address.\nFor multiple addresses, seperate with commas:','')
	if (referadd != "" && referadd != null) {
		window.location="mailto:" + referadd + referemail
	} else { 
		ans = confirm("You didn't enter an e-mail address.\nPlease try again or cancel to quit.")
		if (ans == "true") { Sender(); }
	}
}


// ————————— REFERRAL BOX

referyourfriend = "<div style=\"padding: 10px; width: 120px; float: right\">" +
"<div style=\"font-family: verdana,arial,helvetica; font-size: 10px; " +
"text-align: center; background-color: #ffffea; border-style: solid; border-width: 0 1px 0 1px; " +
"border-color: #dc0000; padding: 5px 5px 7px 5px\">" +
"<a href=\"javascript: Refer()\" " +
"onMouseOver=\"status=\'Send your friends here.\';return true\" " +
"onMouseOut=\"status=\'\';return true\">Refer This Site<br>" +
"to a Friend</a></div></div>"

function RefBox() { document.write(referyourfriend) }


// ————————— LINK TO TOP

function TopLink() { document.write("<p align=\"right\"><a href=\"#top\" class=\"f8\">BACK TO TOP</a></p>") }

// ————————— NEW WINDOW AFFILIATE PROGRAM

function Goad(index) {
	redirurl = "/cgi-bin/go/go.pl?" + index
	window.open(redirurl,"ru","top=0,left=0,menubar,toolbar,scrollbars,resizable,copyhistory,status,location,directories")
}


// —————————————— GOOGLE ADSENSE CODE
// <script type="text/JavaScript" src="/common/ggl/ggl.001.js"></script>

function GglAds(ggl) { document.write("<script type=\"text/JavaScript\" src=\"/common/ggl/ggl.", ggl, ".js\"></script>") }

function GglAds2() {
	if (location.href.search(/^http\:\/\/thiefware/) == -1) {
		document.write("<script type=\"text/javascript\" src=\"/common/ggdiv1.js\"></script>")
		document.write("<script type=\"text/javascript\" ",
		"src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"></script>")
		document.write("<script type=\"text/javascript\" src=\"/common/ggdiv2.js\"></script>")
	} else {
		document.write("<p><div style=\"width: ",
		google_ad_width, "; height: ", google_ad_height,
		"; background-color: #fed; border: 1px solid #dcb; text-align: center\">",
		"<div style=\"position: relative; top: 30%\">Google AdSense</div></div></p>")
	}
}

