// $Id: popup.js,v 1.1 2005/03/03 15:53:36 justin Exp $

// open privacy policy
function popHelp(step) {
	popDo("/help.php?step="+step.toString(),500,500);
}

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

// open terms of use
function popTerms() {
	popDo("/terms.php",500,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();
}