function pop_it(window_URL,w,h,cx,cy,under)  {
		//opens a window
		// WIDTH,HEIGHT,CENTERX,CENTERY are not nessessary
	width=w||"0";
	height=h||"0";
	topPosition=cy||"0";
	leftPosition=cx||"0";

	screenWidth=screen.width;
	screenHeight=screen.height;
	if (width=="0") {
		width="640";
		}
	if (height=="0") {
		height="500";
		}
	if (leftPosition=="0") {
		if (width > screenWidth) {
			width= screenWidth;
			leftPosition=0;
			}
		else {
			leftPosition=(screenWidth-width)/2;
			}
		}
	if (topPosition=="0") {
		if (height > screenHeight) {
			height= screenHeight;
			topPosition=0;
			}
		else {
			topPosition=(screenHeight-height)/2;
			}
		}

	rndName = randomString();
	openParam2 = "toolbar=0,location=0,status=0,menubar=yes,scrollbars=yes,copyhistory=0,resizable=1,alwaysRaised,titlebar=0,width="+width+",height="+height+",top="+topPosition+",left="+leftPosition;
	newWin = window.open(window_URL, rndName,openParam2);
	if (under)
		newWin.blur();

	}

function randomString() {
	var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
	var string_length = 8;
	var randomstring = '';
	for (var i=0; i<string_length; i++) {
		var rnum = Math.floor(Math.random() * chars.length);
		randomstring += chars.substring(rnum,rnum+1);
	}
	return randomstring;
}
