// $Id: popup.js,v 1.2 2006/09/06 13:16:33 justin Exp $

// open privacy policy
function popPrivacy() {
	popDo("/privacy.php",600,500);
}

// open terms of use
function popTerms() {
	popDo("/terms.php",600,500);
}

// open terms of use
function popMail() {
	popDo("/mail-signup.php",600,500);
}

// open/resize a popup
function popDo(url,w,h) {
	var size;

	if (w>0 && h>0) {
		size = "width="+w+",height="+h+",innerwidth="+w+",innerheight="+h+",";
	} else {
		size = "";
	}
	var params = size+"dependent=yes,directories=no,status=no,toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=yes";
	var popup = window.open(url,"popup",params);
	popup.resizeTo(w,h);
	popup.focus();
}

