function popupWindow(asset,style,height,width)
{
	if (style == 'external') {
		document.popWin = window.open(asset, 'TLH','height=625,width=750,location=yes,scrollbars=yes,menubars=yes,toolbars=yes,resizable=yes,status=yes,top=150,left=150');
	} else if (style == 'internal') {
		document.popWin = window.open(asset, 'TLH','height=625,width=750,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes,status=no,top=150,left=150');
	} else if (style == 'ingredients') {
		document.popWin = window.open(asset, 'TLH','height=' + (height+10).toString() + ',width=' + width.toString() + ',location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes,status=no');
	} else if (style == 'pdf') {
		//alert(navigator.userAgent);
		if(navigator.userAgent.indexOf('Safari') != -1) {
			//Safari
			window.location = asset;
		} else if(navigator.userAgent.indexOf('Mac') != -1) {
			//Mac Power PC
			document.location = asset;
		} else if(navigator.userAgent.indexOf('Opera') != -1) {
			//Opera
			document.location = asset;
		} else {
			//Other
			document.popWin = window.open(asset, 'TLH','height=625,width=750,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes,status=no,top=150,left=150');
		}
	}
	document.popWin.focus();
}
