function openWindow(thisLink, thisWidth, thisHeight){
	if (typeof(thisLink)=='undefined' || !thisLink) return true;
	if (typeof(thisWidth)=='undefined' || !thisWidth) thisWidth = parseInt(screen.availWidth/2);
	if (typeof(thisHeight)=='undefined' || !thisHeight) thisHeight = parseInt(screen.availHeight/2);
	try {
		window.open(thisLink,'','width='+thisWidth+',height='+thisHeight+',top=30,left=30,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,fullscreen=no,channelmode=no');
	} catch (e) {
		return true;
	}
	return false;
}

