<!--

//Frames breaker
var strHref = document.referrer;
if ( strHref.indexOf("snap.com") > -1 ){
	if (top.location != self.location) {
		top.location = self.location.href
	}
}


var MyChildWindow = null;

function popUp(URL, x, y, width, height) {
	window.name="MyParentWindow";
	myName = "myNewWindow" + width;
	MyChildWindow = window.open(URL, myName, 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1,width=' + width + ',height=' + height + ',left=' + x + ',top=' + y);
	MyChildWindow.focus();
//	return MyChildWindow;
}

function popUp2(URL) {
	popUp(URL, 10, 40, 515, 400);
}

function popUp3(URL) {
	popUp(URL, 10, 40, 400, 250);
}

function popUpAnon(URL, x, y, width, height) {
	myName = "myNewWindow" + width;
	MyChildWindow = window.open(URL, myName, 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1,width=' + width + ',height=' + height + ',left=' + x + ',top=' + y);
	MyChildWindow.focus();
	MyChildWindow;
//	return MyChildWindow;
}

function popUpAnon2(URL) {
	return popUpAnon(URL, 10, 40, 515, 400);
}

function popUpAnon3(URL) {
	return popUpAnon(URL, 10, 40, 400, 250);
}

function CloseAndRedirect(URL) {
	if (opener) {
		opener.location=URL;
		window.close();
	} else {
		this.location.href=URL;
	}
}

function CloseAndRefresh() {
	opener.location.reload(true);
	window.close();
}

function popUnder(URL, x, y, width, height) {
	window.name="MyParentWindow";
	myName = "myNewWindow" + width;
	MyChildWindow = window.open(URL, myName, 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1,width=' + width + ',height=' + height + ',left=' + x + ',top=' + y);
	window.focus();
//	return MyChildWindow();
}
//-->
