function printWindow(url) {
	winprops = 'width=720,height=500,top=25,left=25,scrollbars=yes,resizable,status';
	win = window.open(url,'print_window',winprops);
	win.focus();
	win.print();
}

//if (window.top.location != window.location) {
//	window.top.location = window.location;
//}

var clickmessage="Please see our logos page to download our logo.  You will be forwarded to the logos page when you click OK.";

function disableClick(e) {
	if (document.all) {
		if (event.button==2||event.button==3) {
			if (event.srcElement.tagName=="IMG"){
				alert(clickmessage);
				window.location='/image_manager/download_logos.php';
				return false;
			}
		}
	}
	else if (document.layers) {
		if (e.which == 3) {
			alert(clickmessage);
			window.location='/image_manager/download_logos.php';
			return false;
		}
	}
	else if (document.getElementById){
		if (e.which==3&&e.target.tagName=="IMG"){
			alert(clickmessage);
			window.location='/image_manager/download_logos.php';
			return false
		}
	}
}

function newWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,status';
	win = window.open(mypage, myname, winprops);
	win.focus();
}		
