

	function getURLValue(name) {
		name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
		var regexS = "[\\?&]"+name+"=([^&#]*)";
		var regex = new RegExp(regexS);
		var results = regex.exec(window.location.href);
		if (results == null)
			return '';
		else
			return results[1];
	}

	function firePVT() {
		if (parent.parent.pushPVT) {
			var userId = getURLValue('userId');
			var pushReturn = getURLValue('pushReturn');

			if (userId != '' && pushReturn != '') {
				parent.parent.pushPVT(userId, pushReturn);
			} else {		// response may be encrypted and passed in single 'response' URL param
				var response = getURLValue('response');

				if (response != '')
					parent.parent.pushPVT(response);
			}
		}
	}


	