/*
	Scripts copied from a typical IGN page,
	plus the watchit script from changenotes.com

	Author: OldManLink (Peter Hugosson-Miller)
	Creation date: 2004-07-02
	Version: 1.0
*/

var go_mem="OldManLink";

var submitDone;
submitDone = 0;

function preventDoublePosts() {
	if (document.all && document.frmMain.cmdSubmit) {
		document.frmMain.cmdSubmit.disabled = true;
		document.frmMain.cmdSubmit.value = 'Processing... Please wait...';
	}

	if (submitDone == 0) {
		submitDone = 1;
		return true;
	}
	else {
		if (!document.frmMain.cmdSubmit || !document.all) {
			alert("Processing... Please wait...");
		}
		return false;
	}
}

function resizeImage(this_image) {
	if (document.all) {
		while (this_image.width > 150) {
			if (this_image.width > this_image.height) this_image.width = this_image.width-10;
			if (this_image.width < this_image.height) this_image.height = this_image.height-10;
		}

		while (this_image.height > 250) {
			if (this_image.width > this_image.height) this_image.width = this_image.width-10;
			if (this_image.width < this_image.height) this_image.height = this_image.height-10;
		}
	}
}

function snowToolBar(){}

function snowFooter(){}

function watchit(url) {
  watchitWin = window.open('http://www.changenotes.com/addapage.php?url='+document.location,
	'watchitWindow',
	'scrollbars=yes,resizable=yes,toolbar=no,directories=no,status=no,menubar=no,height=550,width=600');
  watchitWin.focus()
  return false
}

