// Popup window code
// Codes by Quackit.com
function newPopup(url) {
	leftPos = 0;
	topPos = 0;
	if (screen) {
		leftPos = (screen.width/2) - 478;
		topPos = (screen.height/2) - (280+50);
	}
	popupWindow = window.open(
		url,'popUpWindow','height=555,width=957,resizable=no,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes,left='+leftPos+',top='+topPos);
}

function publicViewPopup(url) {
	leftPos = 0;
	topPos = 0;
	if (screen) {
		leftPos = (screen.width/2) - 478;
		topPos = (screen.height/2) - (175+50);
	}
	popupWindow = window.open(
		url,'popUpWindow','height=350,width=953,scrollbars=yes,directories=no,status=yes,toolbar=0,location=0,statusbar=0,menubar=0,resizable=0,left='+leftPos+',top='+topPos)
}

function adjustHeights(div1, div2){
	var h1 = $(div1).height();
	var h2 = $(div2).height();
	
	if (h1 == h2)
		return;
	
	if (h1 > h2){
		$(div2).height(h1);
	}else{
		$(div1).height(h2);
	}
	
}
