function openPopUp(intWidth, intHeight, strLocation){
	var strOptions;
	var intWindowNumber;
	
	intWindowNumber = Math.round(Math.random() * 999999);
	strOptions=" toolbar=no";
	strOptions+=", location=no";
	strOptions+=", directories=no";
	strOptions+=", resizable=yes";
	strOptions+=", scrollbars=yes";
	strOptions+=", menubar=no";
	strOptions+=", status=yes";

	strOptions+=", width="+ intWidth;
	strOptions+=", height=" + intHeight;
	strOptions+=", left=" + ((screen.availWidth - intWidth)/2);
	strOptions+=", top=" + ((screen.availHeight - intHeight)/2);
	window.open(strLocation, 'newWindow' + intWindowNumber, strOptions, false);
}

function getButton(strURL, bolReturn){
	var strButton;
	
	strButton = "<a href='" + strURL + "'>";
	strButton += "<img src=\"img/buttonOff.gif\" onmouseover=\"this.src='img/buttonOn.gif'\" onmouseout=\"this.src='img/buttonOff.gif'\" border=\"0\">";
	strButton += "</a>";
	
	if(bolReturn)
		return strButton;
	else
		document.write(strButton);
}
